Class ImageLoader
Definition
- Assembly:
- Tizen.NUI.dll
A class containing methods providing image loading
public class ImageLoader
- Inheritance
-
objectImageLoader
Methods
View SourceDownloadImageSynchronously(string, Size2D, FittingModeType, SamplingModeType, bool)
Load an image synchronously from a remote resource.
Declaration
public static PixelBuffer DownloadImageSynchronously(string url, Size2D size, FittingModeType fittingMode, SamplingModeType samplingMode, bool orientationCorrection)
Parameters
| Type | Name | Description |
|---|---|---|
| string | url | The URL of the image file to load. |
| Size2D | size | The width and height to fit the loaded image to, 0.0 means whole image. |
| FittingModeType | fittingMode | The method used to fit the shape of the image before loading to the shape defined by the size parameter. |
| SamplingModeType | samplingMode | The filtering method used when sampling pixels from the input image while fitting it to desired size. |
| bool | orientationCorrection | Reorient the image to respect any orientation metadata in its header. |
Returns
| Type | Description |
|---|---|
| PixelBuffer | Handle to the loaded PixelBuffer object or an empty handle in case downloading or decoding failed. |
Remarks
Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.
DownloadImageSynchronously(string, Size2D, FittingModeType, SamplingModeType)
Load an image synchronously from a remote resource.
Declaration
public static PixelBuffer DownloadImageSynchronously(string url, Size2D size, FittingModeType fittingMode, SamplingModeType samplingMode)
Parameters
| Type | Name | Description |
|---|---|---|
| string | url | The URL of the image file to load. |
| Size2D | size | The width and height to fit the loaded image to, 0.0 means whole image. |
| FittingModeType | fittingMode | The method used to fit the shape of the image before loading to the shape defined by the size parameter. |
| SamplingModeType | samplingMode | The filtering method used when sampling pixels from the input image while fitting it to desired size. |
Returns
| Type | Description |
|---|---|
| PixelBuffer | Handle to the loaded PixelBuffer object or an empty handle in case downloading or decoding failed. |
Remarks
Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.
DownloadImageSynchronously(string, Size2D, FittingModeType)
Load an image synchronously from a remote resource.
Declaration
public static PixelBuffer DownloadImageSynchronously(string url, Size2D size, FittingModeType fittingMode)
Parameters
| Type | Name | Description |
|---|---|---|
| string | url | The URL of the image file to load. |
| Size2D | size | The width and height to fit the loaded image to, 0.0 means whole image. |
| FittingModeType | fittingMode | The method used to fit the shape of the image before loading to the shape defined by the size parameter. |
Returns
| Type | Description |
|---|---|
| PixelBuffer | Handle to the loaded PixelBuffer object or an empty handle in case downloading or decoding failed. |
Remarks
Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.
DownloadImageSynchronously(string, Size2D)
Load an image synchronously from a remote resource.
Declaration
public static PixelBuffer DownloadImageSynchronously(string url, Size2D size)
Parameters
| Type | Name | Description |
|---|---|---|
| string | url | The URL of the image file to load. |
| Size2D | size | The width and height to fit the loaded image to, 0.0 means whole image. |
Returns
| Type | Description |
|---|---|
| PixelBuffer | Handle to the loaded PixelBuffer object or an empty handle in case downloading or decoding failed. |
Remarks
Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.
DownloadImageSynchronously(string)
Load an image synchronously from a remote resource.
Declaration
public static PixelBuffer DownloadImageSynchronously(string url)
Parameters
| Type | Name | Description |
|---|---|---|
| string | url | The URL of the image file to load. |
Returns
| Type | Description |
|---|---|
| PixelBuffer | Handle to the loaded PixelBuffer object or an empty handle in case downloading or decoding failed. |
Remarks
Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.
DownloadImageSynchronously(Uri, Size2D, FittingModeType)
Hidden API (Inhouse API). Using Uri class to provide safe service and secure API. Load an image synchronously from a remote resource.
Declaration
public static PixelBuffer DownloadImageSynchronously(Uri uri, Size2D size, FittingModeType fittingMode)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | uri | The URI of the image file to load. |
| Size2D | size | The width and height to fit the loaded image to, 0.0 means whole image. |
| FittingModeType | fittingMode | The method used to fit the shape of the image before loading to the shape defined by the size parameter. |
Returns
| Type | Description |
|---|---|
| PixelBuffer | Handle to the loaded PixelBuffer object or an empty handle in case downloading or decoding failed. |
Remarks
Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.
GetClosestImageSize(string, Size2D, FittingModeType, SamplingModeType, bool)
Determine the size of an image that LoadImageFromFile will provide when given the same image loading parameters.
Declaration
public static Size2D GetClosestImageSize(string filename, Size2D size, FittingModeType fittingMode, SamplingModeType samplingMode, bool orientationCorrection)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | The name of the image. |
| Size2D | size | The requested size for the image. |
| FittingModeType | fittingMode | The method to use to map the source image to the desired dimensions. |
| SamplingModeType | samplingMode | The image filter to use if the image needs to be downsampled to the requested size. |
| bool | orientationCorrection | Whether to use image metadata to rotate or flip the image, for example, from portrait to landscape. |
Returns
| Type | Description |
|---|---|
| Size2D | Dimensions that image will have if it is loaded with given parameters. |
Remarks
Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.
GetClosestImageSize(string, Size2D, FittingModeType, SamplingModeType)
Determine the size of an image that LoadImageFromFile will provide when given the same image loading parameters.
Declaration
public static Size2D GetClosestImageSize(string filename, Size2D size, FittingModeType fittingMode, SamplingModeType samplingMode)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | The name of the image. |
| Size2D | size | The requested size for the image |
| FittingModeType | fittingMode | The method to use to map the source image to the desired dimensions. |
| SamplingModeType | samplingMode | The image filter to use if the image needs to be downsampled to the requested size. |
Returns
| Type | Description |
|---|---|
| Size2D | Dimensions that image will have if it is loaded with given parameters. |
Remarks
Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.
GetClosestImageSize(string, Size2D, FittingModeType)
Determine the size of an image that LoadImageFromFile will provide when given the same image loading parameters.
Declaration
public static Size2D GetClosestImageSize(string filename, Size2D size, FittingModeType fittingMode)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | The name of the image. |
| Size2D | size | The requested size for the image |
| FittingModeType | fittingMode | The method to use to map the source image to the desired dimensions. |
Returns
| Type | Description |
|---|---|
| Size2D | Dimensions that image will have if it is loaded with given parameters. |
Remarks
Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.
GetClosestImageSize(string, Size2D)
Determine the size of an image that LoadImageFromFile will provide when given the same image loading parameters.
Declaration
public static Size2D GetClosestImageSize(string filename, Size2D size)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | The name of the image. |
| Size2D | size | The requested size for the image |
Returns
| Type | Description |
|---|---|
| Size2D | Dimensions that image will have if it is loaded with given parameters. |
Remarks
Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.
GetClosestImageSize(string)
Determine the size of an image that LoadImageFromFile will provide when given the same image loading parameters.
Declaration
public static Size2D GetClosestImageSize(string filename)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | The name of the image. |
Returns
| Type | Description |
|---|---|
| Size2D | Dimensions that image will have if it is loaded with given parameters. |
Remarks
Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.
GetOriginalImageSize(string, bool)
Get the size of an original image rotated according to image metadata
Declaration
public static Size2D GetOriginalImageSize(string filename, bool orientationCorrection)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | The name of the image. |
| bool | orientationCorrection | Reorient the image to respect any orientation metadata in its header. |
Returns
| Type | Description |
|---|---|
| Size2D | Dimension of the original image. |
GetOriginalImageSize(string)
Get the size of an original image rotated according to image metadata
Declaration
public static Size2D GetOriginalImageSize(string filename)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | The name of the image. |
Returns
| Type | Description |
|---|---|
| Size2D | Dimension of the original image. |
LoadImageFromBuffer(Stream, Size2D, FittingModeType, SamplingModeType, bool)
Load an image synchronously from Stream. Load from current position to end of stream.
Declaration
public static PixelBuffer LoadImageFromBuffer(System.IO.Stream stream, Size2D size, FittingModeType fittingMode, SamplingModeType samplingMode, bool orientationCorrection)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.Stream | stream | The Stream of the image file to load. |
| Size2D | size | The width and height to fit the loaded image to, 0.0 means whole image. |
| FittingModeType | fittingMode | The method used to fit the shape of the image before loading to the shape defined by the size parameter. |
| SamplingModeType | samplingMode | The filtering method used when sampling pixels from the input image while fitting it to desired size. |
| bool | orientationCorrection | Reorient the image to respect any orientation metadata in its header. |
Returns
| Type | Description |
|---|---|
| PixelBuffer | Handle to the loaded PixelBuffer object or an empty handle in case loading failed. |
Remarks
Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.
LoadImageFromBuffer(Stream, Size2D, FittingModeType, SamplingModeType)
Load an image synchronously from Stream. Load from current position to end of stream.
Declaration
public static PixelBuffer LoadImageFromBuffer(System.IO.Stream stream, Size2D size, FittingModeType fittingMode, SamplingModeType samplingMode)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.Stream | stream | The Stream of the image file to load. |
| Size2D | size | The width and height to fit the loaded image to, 0.0 means whole image. |
| FittingModeType | fittingMode | The method used to fit the shape of the image before loading to the shape defined by the size parameter. |
| SamplingModeType | samplingMode | The filtering method used when sampling pixels from the input image while fitting it to desired size. |
Returns
| Type | Description |
|---|---|
| PixelBuffer | Handle to the loaded PixelBuffer object or an empty handle in case loading failed. |
Remarks
Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.
LoadImageFromBuffer(Stream, Size2D, FittingModeType)
Load an image synchronously from Stream. Load from current position to end of stream.
Declaration
public static PixelBuffer LoadImageFromBuffer(System.IO.Stream stream, Size2D size, FittingModeType fittingMode)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.Stream | stream | The Stream of the image file to load. |
| Size2D | size | The width and height to fit the loaded image to, 0.0 means whole image. |
| FittingModeType | fittingMode | The method used to fit the shape of the image before loading to the shape defined by the size parameter. |
Returns
| Type | Description |
|---|---|
| PixelBuffer | Handle to the loaded PixelBuffer object or an empty handle in case loading failed. |
Remarks
Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.
LoadImageFromBuffer(Stream, Size2D)
Load an image synchronously from Stream. Load from current position to end of stream.
Declaration
public static PixelBuffer LoadImageFromBuffer(System.IO.Stream stream, Size2D size)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.Stream | stream | The Stream of the image file to load. |
| Size2D | size | The width and height to fit the loaded image to, 0.0 means whole image. |
Returns
| Type | Description |
|---|---|
| PixelBuffer | Handle to the loaded PixelBuffer object or an empty handle in case loading failed. |
Remarks
Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.
LoadImageFromBuffer(Stream)
Load an image synchronously from Stream. Load from current position to end of stream.
Declaration
public static PixelBuffer LoadImageFromBuffer(System.IO.Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.Stream | stream | The Stream of the image file to load. |
Returns
| Type | Description |
|---|---|
| PixelBuffer | Handle to the loaded PixelBuffer object or an empty handle in case loading failed. |
Remarks
Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.
LoadImageFromFile(string, Size2D, FittingModeType, SamplingModeType, bool)
Load an image synchronously from local file.
Declaration
public static PixelBuffer LoadImageFromFile(string url, Size2D size, FittingModeType fittingMode, SamplingModeType samplingMode, bool orientationCorrection)
Parameters
| Type | Name | Description |
|---|---|---|
| string | url | The URL of the image file to load. |
| Size2D | size | The width and height to fit the loaded image to, 0.0 means whole image. |
| FittingModeType | fittingMode | The method used to fit the shape of the image before loading to the shape defined by the size parameter. |
| SamplingModeType | samplingMode | The filtering method used when sampling pixels from the input image while fitting it to desired size. |
| bool | orientationCorrection | Reorient the image to respect any orientation metadata in its header. |
Returns
| Type | Description |
|---|---|
| PixelBuffer | Handle to the loaded PixelBuffer object or an empty handle in case loading failed. |
Remarks
Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.
LoadImageFromFile(string, Size2D, FittingModeType, SamplingModeType)
Load an image synchronously from local file.
Declaration
public static PixelBuffer LoadImageFromFile(string url, Size2D size, FittingModeType fittingMode, SamplingModeType samplingMode)
Parameters
| Type | Name | Description |
|---|---|---|
| string | url | The URL of the image file to load. |
| Size2D | size | The width and height to fit the loaded image to, 0.0 means whole image. |
| FittingModeType | fittingMode | The method used to fit the shape of the image before loading to the shape defined by the size parameter. |
| SamplingModeType | samplingMode | The filtering method used when sampling pixels from the input image while fitting it to desired size. |
Returns
| Type | Description |
|---|---|
| PixelBuffer | Handle to the loaded PixelBuffer object or an empty handle in case loading failed. |
Remarks
Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.
LoadImageFromFile(string, Size2D, FittingModeType)
Load an image synchronously from local file.
Declaration
public static PixelBuffer LoadImageFromFile(string url, Size2D size, FittingModeType fittingMode)
Parameters
| Type | Name | Description |
|---|---|---|
| string | url | The URL of the image file to load. |
| Size2D | size | The width and height to fit the loaded image to, 0.0 means whole image. |
| FittingModeType | fittingMode | The method used to fit the shape of the image before loading to the shape defined by the size parameter. |
Returns
| Type | Description |
|---|---|
| PixelBuffer | Handle to the loaded PixelBuffer object or an empty handle in case loading failed. |
Remarks
Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.
LoadImageFromFile(string, Size2D)
Load an image synchronously from local file.
Declaration
public static PixelBuffer LoadImageFromFile(string url, Size2D size)
Parameters
| Type | Name | Description |
|---|---|---|
| string | url | The URL of the image file to load. |
| Size2D | size | The width and height to fit the loaded image to, 0.0 means whole image. |
Returns
| Type | Description |
|---|---|
| PixelBuffer | Handle to the loaded PixelBuffer object or an empty handle in case loading failed. |
Remarks
Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.
LoadImageFromFile(string)
Load an image synchronously from local file.
Declaration
public static PixelBuffer LoadImageFromFile(string url)
Parameters
| Type | Name | Description |
|---|---|---|
| string | url | The URL of the image file to load. |
Returns
| Type | Description |
|---|---|
| PixelBuffer | Handle to the loaded PixelBuffer object or an empty handle in case loading failed. |
Remarks
Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.