Table of Contents

Class HasBildExtensions

Namespace
BpNexT.NET.Extensions.Internal
Assembly
BpNexT.NET.dll

Provides extension methods for the IHasBild class.

public static class HasBildExtensions
Inheritance
object
HasBildExtensions

Methods

HasBild(IHasBild, int)

Determines whether the IHasBild has an image set.

public static bool HasBild(this IHasBild hasBild, int bildNum = 1)

Parameters

hasBild IHasBild

The AutoDataSet to check for an image. Must implement IHasBild.

bildNum int

The number of the image to check.

Returns

bool

true if the IHasBild has an image set; otherwise, false.

LoadBild(IHasBild, string, int)

Loads an image from a file into the IHasBild.

public static void LoadBild(this IHasBild hasBild, string filePath, int bildNum = 1)

Parameters

hasBild IHasBild

The AutoDataSet to load the image into. Must implement IHasBild.

filePath string

The file path to load the image from.

bildNum int

The number of the image to load.

LoadBildAs(IHasBild, Stream, ImageType, int)

Loads an image from a stream into the IHasBild.

public static void LoadBildAs(this IHasBild hasBild, Stream stream, ImageType imageType, int bildNum = 1)

Parameters

hasBild IHasBild

The AutoDataSet to load the image into. Must implement IHasBild.

stream Stream

The stream to load the image from.

imageType ImageType

The format of the image in the stream.

bildNum int

The number of the image to load.

LoadBildAs(IHasBild, string, ImageType, int)

Loads an image from a file into the IHasBild in a specific format.

public static void LoadBildAs(this IHasBild hasBild, string filePath, ImageType imageType, int bildNum = 1)

Parameters

hasBild IHasBild

The AutoDataSet to load the image into. Must implement IHasBild.

filePath string

The file path to load the image from.

imageType ImageType

The format of the image in the file.

bildNum int

The number of the image to load.

SaveBild(IHasBild, Stream, int)

Saves the IHasBild to a stream.

public static void SaveBild(this IHasBild hasBild, Stream stream, int bildNum = 1)

Parameters

hasBild IHasBild

The AutoDataSet to extract the image from. Must implement IHasBild.

stream Stream

The stream to save the image to.

bildNum int

The number of the image to save.

SaveBild(IHasBild, string, int)

Saves the IHasBild to a file.

public static void SaveBild(this IHasBild hasBild, string filePath, int bildNum = 1)

Parameters

hasBild IHasBild

The AutoDataSet to extract the image from. Must implement IHasBild.

filePath string

The file path to save the image to.

bildNum int

The number of the image to save.

SaveBildAs(IHasBild, Stream, ImageType, int)

Saves the IHasBild to a stream in a specific format.

public static void SaveBildAs(this IHasBild hasBild, Stream stream, ImageType imageType, int bildNum = 1)

Parameters

hasBild IHasBild

The AutoDataSet to extract the image from. Must implement IHasBild.

stream Stream

The stream to save the image to.

imageType ImageType

The format to save the image in.

bildNum int

The number of the image to save.

SaveBildAs(IHasBild, string, ImageType, int)

Saves the IHasBild to a file in a specific format.

public static void SaveBildAs(this IHasBild hasBild, string filePath, ImageType imageType, int bildNum = 1)

Parameters

hasBild IHasBild

The AutoDataSet to extract the image from. Must implement IHasBild.

filePath string

The file path to save the image to.

imageType ImageType

The format to save the image in.

bildNum int

The number of the image to save.