Click to See Complete Forum and Search --> : Shrinking Pictures
John G Duffy
June 16th, 2001, 03:37 PM
Is there a way to shrink pictures? Stretchblt will expand them but how do you do the opposite? If I try to pass a target Picturebox to Stretchblt that is smaller than the source, it gives RC = 0.
Thanks in advance
John G
shree
June 16th, 2001, 07:25 PM
StretchBlt does shrink images. You must have made some mistake. The destination height and width, the scalemode etc are the parameters to check.
PaintPicture does it too, but it is quite slow. Nevertheless, ou can use paintpicture to make the parameters work, and then port them to StretchBlt.
John G Duffy
June 17th, 2001, 02:34 PM
Shree. Thanks for your reply. Believe it or not, while twiddling my thumbs, I decided to search Codeguru forum for some suggestions and got a hit for a post I REPLIED to a couple of weeks ago. My reply was the solution to my current problem. I guess Senility is creeping in. I even posted a complete working sample in my reply.
John G
ant
June 17th, 2001, 06:36 PM
i guess you know more than you think
--Ant
--------------------------------------------------
check out my newest freeware
E-mail me at: cgeorge@thevortex.com
for the address
Cimperiali
June 18th, 2001, 03:42 AM
I was looking for it, but I was unable to find your post. May you provide the url?
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.
John G Duffy
June 18th, 2001, 10:00 AM
Here it is. It doesn't specificaly address shrinling a picture, but it does do the job.
http://63.236.73.79/cgi-bin/bbs/wt/showpost.pl?Board=vb&Number=52531&Search=true&Forum=vb&Words=bitblt&Match=Whole&Topic=&Searchpage=0&Limit=25
John G
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.