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 a rectangular area using pixel measurements for width and height.\u003c/p\u003e\n"],["\u003cp\u003eUses JSON format with "width" and "height" fields to specify the grid dimensions.\u003c/p\u003e\n"],["\u003cp\u003eBoth width and height are represented as integers indicating the pixel count.\u003c/p\u003e\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. |"]]