Struct PluginImage
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
An image the host holds on a plugin's behalf. The handle is a number that means nothing outside the host that issued it; a plugin keeps it, draws with it and gives it back through Release(PluginImage). The size is carried so the plugin can lay the image out without asking again.
public readonly record struct PluginImage : IEquatable<PluginImage>
- Implements
- Inherited Members
Constructors
PluginImage(int, int, int)
An image the host holds on a plugin's behalf. The handle is a number that means nothing outside the host that issued it; a plugin keeps it, draws with it and gives it back through Release(PluginImage). The size is carried so the plugin can lay the image out without asking again.
public PluginImage(int Handle, int Width, int Height)
Parameters
HandleintThe host's number for this image; 0 means no image.
WidthintThe image's width in pixels.
HeightintThe image's height in pixels.
Properties
Handle
The host's number for this image; 0 means no image.
public int Handle { get; init; }
Property Value
Height
The image's height in pixels.
public int Height { get; init; }
Property Value
IsValid
True when the host issued this image and it has not yet been released.
public bool IsValid { get; }
Property Value
None
No image: what every refused request returns.
public static PluginImage None { get; }
Property Value
Width
The image's width in pixels.
public int Width { get; init; }