Class HasBildExtensions
- Namespace
- BpNexT.NET.Extensions.Internal
- Assembly
- BpNexT.NET.dll
Provides extension methods for the IHasBild class.
public static class HasBildExtensions
- Inheritance
-
objectHasBildExtensions
Methods
HasBild(IHasBild, int)
Determines whether the IHasBild has an image set.
public static bool HasBild(this IHasBild hasBild, int bildNum = 1)
Parameters
hasBildIHasBildThe AutoDataSet to check for an image. Must implement IHasBild.
bildNumintThe number of the image to check.
Returns
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
hasBildIHasBildThe AutoDataSet to load the image into. Must implement IHasBild.
filePathstringThe file path to load the image from.
bildNumintThe 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
hasBildIHasBildThe AutoDataSet to load the image into. Must implement IHasBild.
streamStreamThe stream to load the image from.
imageTypeImageTypeThe format of the image in the stream.
bildNumintThe 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
hasBildIHasBildThe AutoDataSet to load the image into. Must implement IHasBild.
filePathstringThe file path to load the image from.
imageTypeImageTypeThe format of the image in the file.
bildNumintThe 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
hasBildIHasBildThe AutoDataSet to extract the image from. Must implement IHasBild.
streamStreamThe stream to save the image to.
bildNumintThe 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
hasBildIHasBildThe AutoDataSet to extract the image from. Must implement IHasBild.
filePathstringThe file path to save the image to.
bildNumintThe 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
hasBildIHasBildThe AutoDataSet to extract the image from. Must implement IHasBild.
streamStreamThe stream to save the image to.
imageTypeImageTypeThe format to save the image in.
bildNumintThe 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)