This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

RectangleRubberband Ratio...

I'm needing to be able to set different size rectangle selections based on the size of the picture that I need to print.
ex: 4x6, 5,7, 8x10, etc.

Is there a way to get this desired behavior?

I can't seem to find a way to perserve that type of ratio, only a square.
Hello,

To obtain the desired behaviour you should specify initialize RectangleRubberband.Rectangle property:
private void Form1_Load(object sender, System.EventArgs e)
{
	_bitmapViewer.Bitmap.Load(@"d:/images/test/nikon-e950.jpg");
	_rectangleRubberband.Rectangle = new System.Drawing.Rectangle(0, 0, 400, 300);
	_rectangleRubberband.ResizeMode = Aurigma.GraphicsMill.WinControls.ResizeMode.Proportional;
}