This documentation is for the old version. Go to the latest Graphics Mill docs

TransformsProvider Class

This class contains methods used by Bitmap to apply various effects on the bitmap.

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


Visual Basic
Public Class TransformsProvider _
	Inherits LockableObject
public class TransformsProvider : LockableObject


This class enables you to apply effects and transforms (except ones used for tone and color correction) on the bitmap without creating appropriate transform object (contained in Aurigma.GraphicsMill.Transforms namespace). Therefore you can write only single line of code to run the transform. For example, instead of this code:

Visual Basic
' ... bitmap instantiation is omitted for brevity

Dim resize As New Aurigma.GraphicsMill.Transforms.Resize
resize.Width = 800
resize.Height = 600
resize.InterpolationMode = Aurigma.GraphicsMill.Transforms.InterpolationMode.HighQuality
// ... bitmap instantiation is omitted for brevity

Aurigma.GraphicsMill.Transforms.Resize resize = 
    new Aurigma.GraphicsMill.Transforms.Resize();
resize.Width = 800;
resize.Height = 600;
resize.InterpolationMode = Aurigma.GraphicsMill.Transforms.InterpolationMode.HighQuality;

you can just use this code:

Visual Basic
bitmap.Transforms.Resize(800, 600, Aurigma.GraphicsMill.Transforms.InterpolationMode.HighQuality)
bitmap.Transforms.Resize(800, 600, Aurigma.GraphicsMill.Transforms.InterpolationMode.HighQuality);

The only drawback of this short syntax is that you can run transforms and effects through this class only in synchronous mode. If you need to use asynchronous mode, you should create transform class instances and set up the asynchronous mode settings for them.

Another difference of using of this class instead of transform objects is event handling. Unlike transform objects, you should assign event handlers directly to the Bitmap class.

Inheritance Hierarchy

L Aurigma.GraphicsMill.LockableObject
L Aurigma.GraphicsMill.TransformsProvider

Thread Safety

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

See Also