|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Drawing images in different shapes VB.NetHi, 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 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 > 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 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 > 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 > > 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 >> > >
Win32_Baseboard??
Organize and Print CSV data Replace a character in combo box Class inheritence Listview question DLL created in .NET cannot use? (Inno Setup) problem in converting to C# Catch reference error how? Getting error LIBCMT.lib(tidtable.obj) : error LNK2005: __encode_pointer already defined in atlmincr database connection |
|||||||||||||||||||||||