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

Bitmap.Transforms Property

Returns object providing methods which are responsible for geometric transformations of the bitmap (resize, rotate, crop, swirl, etc).

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

Syntax

Visual Basic
Public ReadOnly Property Transforms As TransformsProvider
C#
public TransformsProvider Transforms { get; }

Property Value

TransformsProvider class instance containing methods which are responsible for geometric transformations of the bitmap.

Examples

Visual Basic
'Resize image proportionally to width 100
bitmap.Transforms.Resize(100, 0)

'Resize image proportionally to height 100
'bitmap.Transforms.Resize(0, 100)

'Resize image to make both width and height equal 100 
'(don't constrain proportions)
'bitmap.Transforms.Resize(100, 100)
C#
//Resize image proportionally to width 100
bitmap.Transforms.Resize(100, 0);

//Resize image proportionally to height 100
//bitmap.Transforms.Resize(0, 100);

//Resize image to make both width and height equal 100 
//(don't constrain proportions)
//bitmap.Transforms.Resize(100, 100);

See Also

Reference