Size type
Stay organized with collections
Save and categorize content based on your preferences.
The dimensions of a visual asset.
Fields
width
: Number — required
The width of the asset in pixels.
height
: Number — required
The height of the asset in pixels.
Examples
{
"width": 1920,
"height": 1080
}
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-29 UTC."],[[["\u003cp\u003e\u003ccode\u003ewidth\u003c/code\u003e and \u003ccode\u003eheight\u003c/code\u003e fields define the dimensions of a visual asset in pixels.\u003c/p\u003e\n"],["\u003cp\u003eBoth \u003ccode\u003ewidth\u003c/code\u003e and \u003ccode\u003eheight\u003c/code\u003e fields are required and represented as numerical values.\u003c/p\u003e\n"],["\u003cp\u003eAn example demonstrates the structure with \u003ccode\u003ewidth\u003c/code\u003e set to 1920 and \u003ccode\u003eheight\u003c/code\u003e to 1080 pixels.\u003c/p\u003e\n"]]],[],null,["# Size type\n\nThe dimensions of a visual asset.\n\nFields\n------\n\n`width`: Number --- **required** \n\nThe width of the asset in pixels.\n\n`height`: Number --- **required** \n\nThe height of the asset in pixels.\n\nExamples\n--------\n\n {\n \"width\": 1920,\n \"height\": 1080\n }"]]