Bitmap Class

Represents a bitmap, i.e. an object which stores raster data.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public sealed class Bitmap : PipelineElement, IImageParams, ISerializable

Remarks

This class incapsulates a raster image and stores a bitmap as well as other related data.

Using appropriate properties you can get such details about loaded image as Width, Height, PixelFormat, etc.

To apply some effect or transform, you should pass this bitmap into the Apply(Bitmap) method of an appropriate Transform class descendant. Alternatively, you can use the Transforms property which returns the TransformsProvider. It is less flexible, but has shorter syntax.

If you need to work with bitmap channels: split channels into several grayscale bitmaps, replace some channel with a grayscale image, swap channels, add/remove an alpha channel, etc. In this case you can use the Channels property which returns the ChannelsProvider.

If you need to get/set the single pixel value, you can use easy-to-use pair of methods GetPixel(Int32, Int32)/SetPixel(Int32, Int32, Color).

To save the result to file you can either use format writers or the Save(String) method.

Examples

C#
var bitmap = new Bitmap(@"Images\in.jpg");

Inheritance Hierarchy

System.Object
L Aurigma.GraphicsMill.PipelineElement
L Aurigma.GraphicsMill.Bitmap

Thread Safety

Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.

See Also

Reference

Manual