Table of Contents

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 int

Width of the image

Height int

Heigh 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

int

LoadFromFileFunc

public static Func<string, BitmapData> LoadFromFileFunc { get; set; }

Property Value

Func<string, BitmapData>

Width

Width of the image

public int Width { get; init; }

Property Value

int

Methods

FromFile(string)

public static BitmapData FromFile(string imageFile)

Parameters

imageFile string

Returns

BitmapData

Save(Stream, ImageType)

Save the image into a stream

public void Save(Stream outStream, ImageType imgType)

Parameters

outStream Stream

the output stream

imgType ImageType

saved image format

Save(string, ImageType?)

Save the image into a local file.

public void Save(string filename, ImageType? imgType = null)

Parameters

filename string

file name

imgType ImageType?

saved image format