TTMSFNCBloxImage Class
Holds a bitmap image and provides loading and saving from streams, files, resources, and URLs. Used wherever an image is needed, such as a texture fill.
API unit family: TMSFNCBloxCoreTypes
Inherits from: TPersistent
Syntax
TTMSFNCBloxImage = class(TPersistent)
Properties
| Name | Description |
|---|---|
| IsEmpty | Indicates whether the image currently holds no bitmap content. Returns True when the image is empty. |
| Stream | Provides access to the underlying bitmap that stores the image content. |
Methods
| Name | Description |
|---|---|
| Clear | Clears the image, leaving it empty. |
| LoadFromFile | Loads the image content from a file, replacing any existing content. |
| LoadFromResource | Loads the image content from an embedded resource using the current application instance. |
| LoadFromStream | Loads the image content from a stream, replacing any existing content. |
| LoadFromURL | Loads the image content from a URL using the default application instance. A local path is loaded directly; an HTTP/HTTPS address is downloaded first. |
| SaveToFile | Saves the current image content to a file. |
| SaveToStream | Writes the current image content to a stream. |