Class ImageUtil
Definition
- Namespace:
- Tizen.Multimedia.Util
- Assembly:
- Tizen.Multimedia.Util.dll
Provides utilities for images.
public static class ImageUtil
- Inheritance
-
objectImage
Util
Methods
View SourceGetColor(byte[], Size)
Extracts representative color from an image buffer.
Declaration
public static Color GetColor(byte[] buffer, Size size)
Parameters
Type | Name | Description |
---|---|---|
byte[] | buffer | Raw image buffer. |
Size | size | Resolution of the image. |
Returns
Type | Description |
---|---|
Color | The representative color of the image. |
Remarks
The image should be Rgb888.
Exceptions
Type | Condition |
---|---|
System. |
|
System. |
|
System. |
width of |
GetSupportedColorSpaces(ImageFormat)
Retrieves supported colorspaces for a Image
Declaration
public static IEnumerable<ColorSpace> GetSupportedColorSpaces(ImageFormat format)
Parameters
Type | Name | Description |
---|---|---|
Image |
format | The Image |
Returns
Type | Description |
---|---|
System. |
An IEnumerable of Color |
Exceptions
Type | Condition |
---|---|
System. |
|