GridDimensions
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ระบุขนาดของตารางกริดพิกเซล
การแสดง JSON |
{
"width": integer,
"height": integer
} |
ช่อง |
width |
integer
ความกว้างของตารางกริดในหน่วยพิกเซล
|
height |
integer
ความสูงของตารางกริดในหน่วยพิกเซล
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 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. |"]]