GridDimensions
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Określa wymiary siatki pikseli.
Zapis JSON |
{
"width": integer,
"height": integer
} |
Pola |
width |
integer
Szerokość siatki w pikselach.
|
height |
integer
Wysokość siatki w pikselach.
|
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003eDefines the width and height of a pixel grid using integers.\u003c/p\u003e\n"],["\u003cp\u003eUses a JSON object with "width" and "height" fields to represent the grid dimensions.\u003c/p\u003e\n"]]],["The content defines the structure for representing a pixel grid using a JSON object. This object contains two integer fields: `width` and `height`. `width` represents the horizontal size of the grid in pixels, and `height` specifies the vertical size, also in pixels. This representation allows for defining the dimensions of a rectangular grid.\n"],null,["# GridDimensions\n\nSpecifies the dimensions of a pixel grid.\n\n| JSON representation |\n|-------------------------------------------------|\n| ``` { \"width\": integer, \"height\": integer } ``` |\n\n| Fields ||\n|----------|----------------------------------------------|\n| `width` | `integer` The width of the grid, in pixels. |\n| `height` | `integer` The height of the grid, in pixels. |"]]