Scaling Images In Polygon

  • Thread starter Thread starter pratush
  • Start date Start date
P

pratush

hi.
I am a bit new to graphics programing. I am trying in vb.net to make a
3 walled structure which'll give the look of 3d. for that purpose, I
am using same rectangle filled with textured brush for 3 walls. For
the center wall rectangle is to be drawn as is. For the side walls,I
need a prespective plan view, so the rectangle and hence the images in
textures should be scaled like in a trapezoidal fashion.
But matrices and Drawimage transforms only provide for uniform scaling
in form of parellogram, but not a non-uniformed structure like a
trapezoid.
Is there any way I can do it in an effective and smooth way.
 
Hi,

I would suggest looking into managed DirectX instead.

If you Google 'managed directx' there are some promising results

James
 
* (e-mail address removed) (pratush) scripsit:
I am a bit new to graphics programing. I am trying in vb.net to make a
3 walled structure which'll give the look of 3d. for that purpose, I
am using same rectangle filled with textured brush for 3 walls. For
the center wall rectangle is to be drawn as is. For the side walls,I
need a prespective plan view, so the rectangle and hence the images in
textures should be scaled like in a trapezoidal fashion.
But matrices and Drawimage transforms only provide for uniform scaling
in form of parellogram, but not a non-uniformed structure like a
trapezoid.
Is there any way I can do it in an effective and smooth way.

Why not use DirectX for this purpose?
 
* (e-mail address removed) (pratush) scripsit:

Why not use DirectX for this purpose?

Thanks for the tip and I'll be going for managed directex and
downloading its sdk..but is it not possible in simple GDI+ interfaces
to .net framework? It provides for scaling images in parellolograms
effectively..and fast..so i was wondering weather there be a modified
DrawImage()function which would map to a polygon which is not
parellelogram. I wanted to keep things simple :-)
 
Back
Top