In This Topic
The following tables list the members exposed by NImage.
Public Constructors
Public Fields
Protected Fields
| Name | Description |
| GSAb | |
Top
Public Properties
| Name | Description |
| Height | Gets the height of the image measured in DIPs |
| ImageSource | Gets the image source. Cannot be null. |
| Width | Gets the width of the image measured in DIPs. |
Top
Public Methods
| Name | Description |
| FromBytes | Creates an image from the given byte array. |
| FromDataUriString | Creates an image from the given Base64 Data URI string. |
| FromFileEmbedded | Overloaded. Creates an image from the file with the given full file path. The file content is read asynchronously and embedded into the created image, so it does not depend on the file. |
| FromFileLinked | Creates an image from the file with the given full file path. The image is linked to that file, which means that the image depends on the file. If the file gets changed, the image will be updated, but if the file is deleted the image won't work properly anymore. |
| FromLocalFileEmbedded | Overloaded. Creates an image from the file with the given full file path. The file content is read synchronously and embedded into the created image, so it does not depend on the file. |
| FromLocalFileLinked | Creates an image from the local file with the given full file path. The image is linked to that file, which means that the image depends on the file. If the file gets changed, the image will be updated, but if the file is deleted the image won't work properly anymore. |
| FromRaster | Creates an image, which aggregates a raster. |
| FromResource | Creates an image from the given embedded resource. |
| FromStream | Creates an image from the given stream. The stream is read as a byte array and then an image is created from this byte array, so the image does not depend on the stream and it can be safely disposed. |
| FromUri | Creates an image from the given URI base, which can be a data URI or an URL like an HTTP web address or a local file path to an image. |
| SaveToFileAsync | Overloaded. Saves the image to the given file in the specified format. If the file already exists, it is overwritten. |
| SaveToStream | Overloaded. Saves the image to the given stream in the specified format. |
Top
Protected Methods
| Name | Description |
| OnDeepCopied | Overridden. Called after the node is deeply copied from the specified source node. |
Top
See Also