Class BitmapData
- Namespace
- NetAutoGUI
- Assembly
- NetAutoGUI.dll
Managed Bitmap, there is no need to dispose it explicitly.
public record BitmapData : IEquatable<BitmapData>
- Inheritance
-
BitmapData
- Implements
- Inherited Members
- Extension Methods
Constructors
BitmapData(byte[], int, int)
Managed Bitmap, there is no need to dispose it explicitly.
public BitmapData(byte[] Data, int Width, int Height)
Parameters
Data
byte[]bitmap format data of an image
Width
intWidth of the image
Height
intHeigh of the image
Properties
Data
bitmap format data of an image
public byte[] Data { get; init; }
Property Value
- byte[]
Height
Heigh of the image
public int Height { get; init; }
Property Value
LoadFromFileFunc
public static Func<string, BitmapData> LoadFromFileFunc { get; set; }
Property Value
Width
Width of the image
public int Width { get; init; }
Property Value
Methods
FromFile(string)
public static BitmapData FromFile(string imageFile)
Parameters
imageFile
string
Returns
Save(Stream, ImageType)
Save the image into a stream
public void Save(Stream outStream, ImageType imgType)
Parameters
Save(string, ImageType?)
Save the image into a local file.
public void Save(string filename, ImageType? imgType = null)