[Mono-bugs] [Bug 606412] New: DrawImage(Image* image, Point destPoints[], Rectangle srcRect, GraphicsUnit srcUnit) not allowing rotating of images
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon May 17 11:06:08 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=606412
http://bugzilla.novell.com/show_bug.cgi?id=606412#c0
Summary: DrawImage(Image* image, Point destPoints[], Rectangle
srcRect, GraphicsUnit srcUnit) not allowing rotating
of images
Classification: Mono
Product: Mono: Class Libraries
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Drawing.
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: tom_hindle at sil.org
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=362644)
--> (http://bugzilla.novell.com/attachment.cgi?id=362644)
Sample program that demonstrates DrawImage
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.5
(KHTML, like Gecko) Chrome/4.0.249.43 Safari/532.5
DrawImage should allow rotating of images, by specifying certain destPoints.
"The destPoints parameter specifies three points of a parallelogram. The three
Point structures represent the upper-left, upper-right, and lower-left corners
of the parallelogram. The fourth point is extrapolated from the first three to
form a parallelogram." - from MSDN
so something like this:
Point[] p = new Point[3];
p[0] = new Point(500, 0);
p[1] = new Point(500,500);
p[2] = new Point(0, 0);
e.Graphics.DrawImage(bitmap, p, new Rectangle(0, 0, 500, 500),
GraphicsUnit.Pixel);
should draw a rotated image
Reproducible: Always
Steps to Reproduce:
1. Compile and Run test program
Actual Results:
A single, 10 pixel wide, vertical line is drawn
Expected Results:
a 10 pixel wide, vertical line is drawn and
a 10 pixel high horizontal line is drawn.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list