|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Saving an image from a pictureboxHi,
I'm using VB 2005 EX. I want to save an image from a picturebox control, but with the dimensions of the picturebox control. I have a pb control of 300x300. I load a image into that picturebox with a size of 1024x1024. The pb sizemode is set to stretch, so the picture is resized. Now I use pb.image.save, but it's not 300x300. It's still 1024x1024. What do I have to do to save the resized image. Thanks, Bart Bart,
That depends how you do it, however you have to remove pixels and that will probably not forever give the same as you think. However have a look at the drawing class which gives a lot of tools for that. Cor Hi Cor,
Long time no speak :) Hows things my freind ? Show quoteHide quote "Cor Ligthert[MVP]" <notmyfirstn***@planet.nl> wrote in message news:A26A4B9F-C160-4731-B41E-8C4E0472FB8F@microsoft.com... > Bart, > > That depends how you do it, however you have to remove pixels and that > will probably not forever give the same as you think. > > However have a look at the drawing class which gives a lot of tools for > that. > > Cor
Advice Required - Vb or Not VB (or even .NET)
Multithreading dilemma How do you use GetProperty.SetValue with the index parameter? Weird bug Trouble with sendkey TAB vbNewLine or ControlChars.NewLine Parallel Post Acess Server Explorer - VS 2005 Building GUIs with VB.Net (from a VB.Net beginner) Passing a ColorPalette as an argument |
|||||||||||||||||||||||