Computing.Net > Forums > Programming > resize bmp vb6

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

resize bmp vb6

Reply to Message Icon

Name: abc123456789
Date: December 29, 2004 at 15:37:48 Pacific
OS: win 2000 pro
CPU/Ram: amd k6II 450mhz,128 mb
Comment:

I am writing a program that involves resizing a bitmap image, I have th following code that works fine but is very slow, even when compiled. I was wondering if there is a more efficient algorithm for resing images. Thanks in advance.

Width = Width in pixels
Percent = Picture1.ScaleWidth / Width
Picture2.Move Left,Top,(Picture1.Width/Percent)-1,(Picture1.Height/Percent)-1
For I = 0 To Picture1.ScaleWidth / Percent
For J = 0 To Picture1.ScaleHeight / Percent
Picture2.PSet (I, J), Picture1.Point(I * Percent, J * Percent)
Next J
Next I




Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: resize bmp vb6

VB6 Manipulating bitmaps www.computing.net/answers/programming/vb6-manipulating-bitmaps/14764.html

Forms in VB6 www.computing.net/answers/programming/forms-in-vb6/11793.html

VB6 Problem, Please Help www.computing.net/answers/programming/vb6-problem-please-help/19850.html