Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
lellis  
#1 Posted : Thursday, November 16, 2006 11:53:00 PM(UTC)
lellis

Rank: Member

Groups: Member
Joined: 11/15/2006(UTC)
Posts: 2

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.
Dmitry  
#2 Posted : Sunday, November 19, 2006 4:28:12 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello, To obtain the desired behaviour you should specify initialize RectangleRubberband.Rectangle property:
Code:
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;
}

Edited by user Tuesday, December 18, 2007 8:13:09 PM(UTC)  | Reason: Not specified

Sincerely yours, Dmitry Sevostyanov UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.