Jump to content

PictureBox


hardcore

Recommended Posts

Mas queres que tanto mais pequenas como maiores.. fiquem redimensionadas, certo?

Eu o c贸digo que tenho num programa que fiz 茅 obter um thumbnail da imagem com o tamanho que tem a minha picturebox.

Bitmap bm = new Bitmap(ofd.FileName); // ofd eh um OpenFileDialog
Form1.i = (Image)bm.Clone(); // i eh um objecto Image
Form1.i = Form1.i.GetThumbnailImage( 100, 100, null, System.IntPtr.Zero);
pictureBox1.Image = Form1.i;

N茫o sei bem se 茅 isto que queres fazer.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.