Code: _ResizeTransform = New Aurigma.GraphicsMill.Transforms.Resize(CSng(_bitmap.Width * dblresRatio), CSng(_bitmap.Height * dblresRatio), Aurigma.GraphicsMill.Transforms.InterpolationMode.HighQuality)
AddHandler _ResizeTransform.Stopped, AddressOf _ResizeTransform_Stopped
_ResizeTransform.Priority = Threading.ThreadPriority.BelowNormal
_ResizeTransform.SynchronizationMode = Aurigma.GraphicsMill.SynchronizationMode.Sync
_ResizeTransform.CropEnabled = True
_ResizeTransform.CropRectangle = cropRectangle
_ResizeTransform.ApplyTransform(_bitmap)
?cropRectangle
{X = 0 Y = 0 Width = 2592 Height = 1944}
Bottom: 1944
Empty: {X = 0 Y = 0 Width = 0 Height = 0}
Height: 1944
IsEmpty: False
Left: 0
Location: {X = 0 Y = 0}
Right: 2592
Size: {Width = 2592 Height = 1944}
Top: 0
Width: 2592
X: 0
Y: 0
?_bitmap.Width
2592
?_bitmap.Height
1944
?dblresRatio
0.83361111111111108A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in Aurigma.GraphicsMill.dll
Argument 'CropRectangle' is out of range (Coordinates of all points of crop rect must be inside source image.).Hi,
I am having code as above, during debug time, I try to double check on the value, but seems like everything are okay. The only possibility will be the image size will be smaller after the resize, thus the cropRectangle will not be within the image. But, from the help, seems like the system will run the crop before the resize (or, it will only resize the "cropped" area.
Please advice.