![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is there a way in GDI+ to draw image with perspective warp? There is a way to have perspective warp on GraphicsPath, but I can't find a way to draw image like that. Thanks. |
#3
| |||
| |||
|
|
Hmm, here's a weird idea... Create a GraphicsPath with as many points as you have pixels in the image. Warp it. Map the warped pixels back to the bitmap pixels and copy the image to a second bitmap using LockBits. It'd be fascinating if it worked... -- Bob Powell [MVP] Visual C#, System.Drawing Ramuseco Limited .NET consulting http://www.ramuseco.com Find great Windows Forms articles in Windows Forms Tips and Tricks http://www.bobpowell.net/tipstricks.htm Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/faqmain.htm All new articles provide code in C# and VB.NET. Subscribe to the RSS feeds provided and never miss a new article. Andrew Deren wrote: Is there a way in GDI+ to draw image with perspective warp? There is a way to have perspective warp on GraphicsPath, but I can't find a way to draw image like that. Thanks. |
#4
| |||
| |||
|
|
It would probably work, but the problem is that my images are about 3000x3000 pixels in size. Also, with this I won't have any anti-aliasing, and the output image will probably look bad. "Bob Powell [MVP]" wrote: Hmm, here's a weird idea... Create a GraphicsPath with as many points as you have pixels in the image. Warp it. Map the warped pixels back to the bitmap pixels and copy the image to a second bitmap using LockBits. It'd be fascinating if it worked... -- Bob Powell [MVP] Visual C#, System.Drawing Ramuseco Limited .NET consulting http://www.ramuseco.com Find great Windows Forms articles in Windows Forms Tips and Tricks http://www.bobpowell.net/tipstricks.htm Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/faqmain.htm All new articles provide code in C# and VB.NET. Subscribe to the RSS feeds provided and never miss a new article. Andrew Deren wrote: Is there a way in GDI+ to draw image with perspective warp? There is a way to have perspective warp on GraphicsPath, but I can't find a way to draw image like that. Thanks. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |