GridDimensions
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Spécifie les dimensions d'une grille de pixels.
Représentation JSON |
{
"width": integer,
"height": integer
} |
Champs |
width |
integer
Largeur de la grille, en pixels.
|
height |
integer
Hauteur de la grille, en pixels.
|
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[null,null,["Dernière mise à jour le 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. |"]]