|
-
Feb 6th, 2001, 07:09 PM
#1
Thread Starter
New Member
Hi Guys (again 
Sorry, here's what I want to do...
Load an image, resize it, save out the thumbnail, now to me this seemed like a trvial task indeed... So why doesn't the savepicture work after the image has been scaled ?
I works perfectly, If i save the picturebox before the scale....... I'm sorry i'm new to VB, but have spent half my life working in 680x0 asm on Amiga's, sigh I just don't get this (i have a list a mile long..of things i don't understand about VB)..
Picture1.Visible = False
Picture1.Picture = LoadPicture(sFile)
Dim Width As Integer
Dim Height As Integer
Width = 200
Height = 100
' ' Set pictures box to pixels
Picture1.ScaleMode = 3
Picture2.ScaleMode = 3
Picture2.PaintPicture Picture1.Picture, 0, 0, Width, Height, 0, 0, Picture1.ScaleWidth, Picture1.ScaleHeight
SavePicture Picture2.Picture, "D:\TestSave.bmp"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|