ImageProperties
Stay organized with collections
Save and categorize content based on your preferences.
Groups a set of properties to describe how an image is stored.
Public Method Summary
abstract int |
|
abstract int |
|
Inherited Method Summary
From class java.lang.Object
Public Methods
Gets the pixel format of the image.
public abstract int
getStorageType
()
Gets the storage type of the image.
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-10-31 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-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eImageProperties\u003c/code\u003e is an abstract class in Android used to describe how an image is stored, including its format and storage type.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to retrieve the image format (\u003ccode\u003egetImageFormat()\u003c/code\u003e) and storage type (\u003ccode\u003egetStorageType()\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eImageProperties\u003c/code\u003e inherits standard methods from the \u003ccode\u003eObject\u003c/code\u003e class like \u003ccode\u003eequals()\u003c/code\u003e, \u003ccode\u003ehashCode()\u003c/code\u003e, and \u003ccode\u003etoString()\u003c/code\u003e.\u003c/p\u003e\n"]]],["`ImageProperties` is an abstract class used to describe how an image is stored. Key actions include retrieving the image's pixel format via `getImageFormat()` and determining the image's storage type using `getStorageType()`. It also inherits several methods from the `Object` class, like `equals()`, `hashCode()`, and `toString()`. The pixel format and storage type information refer to `MlImage.ImageFormat` and `MlImage.StorageType`, respectively.\n"],null,["# ImageProperties\n\npublic abstract class **ImageProperties** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nGroups a set of properties to describe how an image is stored. \n\n### Public Method Summary\n\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract int | [getImageFormat](/android/reference/com/google/android/odml/image/ImageProperties#getImageFormat())() Gets the pixel format of the image. |\n| abstract int | [getStorageType](/android/reference/com/google/android/odml/image/ImageProperties#getStorageType())() Gets the storage type of the image. |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public abstract int **getImageFormat** ()\n\nGets the pixel format of the image. \n\n##### See Also\n\n- [MlImage.ImageFormat](/android/reference/com/google/android/odml/image/MlImage.ImageFormat) \n\n#### public abstract int **getStorageType** ()\n\nGets the storage type of the image. \n\n##### See Also\n\n- [MlImage.StorageType](/android/reference/com/google/android/odml/image/MlImage.StorageType)"]]