I'm trying to import an image from the server into my file, then skew the image so that I can give the perspection. I have already tried skewing the image, but Ive only been able to get it so that the height of both the left side and right side are the same.
Whereas I need the left side to be shorter so it appears further away. Does anyone know how to do this?
Hi CurtWRC,
I've posted a couple of enhancements provided by contributors... they're pretty interesting (I think)...
(sorry: they're both written in C#)
Member
679 Points
1013 Posts
Skew images
Oct 10, 2007 07:31 AM|CurtWRC|LINK
I'm trying to import an image from the server into my file, then skew the image so that I can give the perspection. I have already tried skewing the image, but Ive only been able to get it so that the height of both the left side and right side are the same. Whereas I need the left side to be shorter so it appears further away. Does anyone know how to do this?
Thanks,
Curt.
Member
679 Points
1013 Posts
Re: Skew images
Oct 10, 2007 11:44 AM|CurtWRC|LINK
I'm looking for something like this:
http://forums.asp.net/t/1028519.aspx
But i need it to be in VB and the output to be a bitmap so I can use the code in my current file.
Thanks again,
Curt.
Member
63 Points
80 Posts
Re: Skew images
Oct 11, 2007 02:01 AM|Ryoushin|LINK
Here's the code provided in VB.Net:
http://www.pacem.it/CMerighi/Posts/40,en-US/VB.Net_Project_for_Images_Distortion.aspx
Just one thing: the procedure misses some recent features, like bilinear interpolation, but it should accomplish the task.
Hope it helps...
GDI+ Image Manipluation
Member
679 Points
1013 Posts
Re: Skew images
Oct 11, 2007 04:49 AM|CurtWRC|LINK
Thanks Ryoushin, thats really helped!
Member
679 Points
1013 Posts
Re: Skew images
Oct 11, 2007 06:29 AM|CurtWRC|LINK
Ryoushin, you mentioned that bilinear interpolation isn't included. I'm trying to increase the quality. I'm currently using this:
g.InterpolationMode = InterpolationMode.HighQualityBicubic
But it doesnt seem to be helping. Any ideas would be most appreciated.
Member
63 Points
80 Posts
Re: Skew images
Oct 30, 2007 06:59 AM|Ryoushin|LINK
Hi CurtWRC,
I've posted a couple of enhancements provided by contributors... they're pretty interesting (I think)...
(sorry: they're both written in C#)
http://www.pacem.it/CMerighi/Posts/61,en-US/Image_Distortion_Enhancements.aspx
Bye!...
GDI+ Image Manipluation
Member
679 Points
1013 Posts
Re: Skew images
Nov 02, 2007 05:38 AM|CurtWRC|LINK
Thanks Ryoushin. Is there a VB version of Luke's .cs file? Ive tried converting it but I get this error:
BC30311: Value of type 'System.Drawing.Point' cannot be converted to 'System.Drawing.PointF'.
Member
63 Points
80 Posts
Re: Skew images
Nov 02, 2007 07:51 AM|Ryoushin|LINK
Hi Curt,
If you use CType function instead of DirectCast that would work (just presuming the code you're trying to run)...
...anyway, I translated it by myself and merged into the .zip file already available on my blog (link above).
Hope it helps.
GDI+ Image Manipluation VB.Net
Member
679 Points
1013 Posts
Re: Skew images
Nov 02, 2007 10:49 AM|CurtWRC|LINK
Thanks for your quick response and for uploading a VB version!
Ive put the VB version in place and I'm getting this error:
Nullable object must have a value.
Does this mean anything to you?
Thanks again,
Curt.
None
0 Points
1 Post
Re: Skew images
Mar 27, 2013 08:10 PM|Avintrue|LINK
Hey, the link seems to be broken. I am interested in finding this code. Is there any way I could get a repost of this or a PM? Thanks!