Home All Groups Group Topic Archive Search About

Drawing images in different shapes VB.Net

Author
22 Aug 2006 2:05 PM
JimBob
Hi, Thanks for your help in advance. I need some help with drawing
images in VB.Net. This seems simple to me but I can't seem to find a
good example to get me started. I want to take a source image which is
a rectangle and then resize and stretch the image in to a different
shape like a parallelogram. I have been trying to do this with GDI+ but
need a better example then what is given. If someone could give me an
example or point me to a good one you would be a great help.

Thanks

Author
22 Aug 2006 2:31 PM
Cor Ligthert [MVP]
Jim,

One of the methods, create a bitmap from your image and than use the endless
times overloaded drawimage to write it in another bitmap.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdrawinggraphicsclassdrawimagetopic.asp

I hope this helps,

Cor



Show quoteHide quote
"JimBob" <R***@jenscom.com> schreef in bericht
news:1156255511.280020.114440@b28g2000cwb.googlegroups.com...
> Hi, Thanks for your help in advance. I need some help with drawing
> images in VB.Net. This seems simple to me but I can't seem to find a
> good example to get me started. I want to take a source image which is
> a rectangle and then resize and stretch the image in to a different
> shape like a parallelogram. I have been trying to do this with GDI+ but
> need a better example then what is given. If someone could give me an
> example or point me to a good one you would be a great help.
>
> Thanks
>
Author
22 Aug 2006 2:56 PM
JimBob
thanks for the link ive been messing with this already but cant get it
to do what i want. Is it posible to take an image and redraw it into a
shape other then a rectangle?

thanks
Author
22 Aug 2006 3:09 PM
Mudhead
Draw Skew
http://www.devx.com/vb2themax/Tip/19445

Show quoteHide quote
"JimBob" <R***@jenscom.com> wrote in message
news:1156258570.360265.89660@75g2000cwc.googlegroups.com...
> thanks for the link ive been messing with this already but cant get it
> to do what i want. Is it posible to take an image and redraw it into a
> shape other then a rectangle?
>
> thanks
>
Author
22 Aug 2006 4:16 PM
JimBob
Thanks for the help guys! I got the pic in a region and it works
somewhat like i need it to but i need to stretch the image to fit the
specific region. does anyone know how to do that?

thanks again for all your help


Mudhead wrote:
Show quoteHide quote
> Draw Skew
> http://www.devx.com/vb2themax/Tip/19445
>
> "JimBob" <R***@jenscom.com> wrote in message
> news:1156258570.360265.89660@75g2000cwc.googlegroups.com...
> > thanks for the link ive been messing with this already but cant get it
> > to do what i want. Is it posible to take an image and redraw it into a
> > shape other then a rectangle?
> >
> > thanks
> >
Author
22 Aug 2006 5:47 PM
Mudhead
Try making x1 and y2 bigger

Dim x1 As Single = x + bmp.Width + 100
'
'
Dim y2 As Single = y + bmp.Height + 100




Show quoteHide quote
"JimBob" <R***@jenscom.com> wrote in message
news:1156263404.877885.149130@m73g2000cwd.googlegroups.com...
> Thanks for the help guys! I got the pic in a region and it works
> somewhat like i need it to but i need to stretch the image to fit the
> specific region. does anyone know how to do that?
>
> thanks again for all your help
>
>
> Mudhead wrote:
>> Draw Skew
>> http://www.devx.com/vb2themax/Tip/19445
>>
>> "JimBob" <R***@jenscom.com> wrote in message
>> news:1156258570.360265.89660@75g2000cwc.googlegroups.com...
>> > thanks for the link ive been messing with this already but cant get it
>> > to do what i want. Is it posible to take an image and redraw it into a
>> > shape other then a rectangle?
>> >
>> > thanks
>> >
>