|
-
Apr 17th, 2001, 08:38 PM
#1
Thread Starter
PowerPoster
Let us say that I have a 40 * 40 graphics with whatever extenstion-- say gif--
How do I reduce the size of that image and then put that in a picture box so that the properties of the picture box don't change, it is the actuall which changes its height and width when loading from the file.
Did you get that?
-
Apr 17th, 2001, 10:02 PM
#2
New Member
i'm not sure if this is what u mean, but don't u just set the picture box's Stretch attribute to True?
-
Apr 18th, 2001, 08:20 AM
#3
Thread Starter
PowerPoster
But
Yes but I want the picture box of the size 16 by 16 - neither more
nor less. That is problem.
-
Apr 18th, 2001, 03:09 PM
#4
Good Ol' Platypus
Okay, then use the StretchBlt API!!!
(trumpet sounds )
It's a 'sister' API to Bitblt, and it works well with no memory leaks. Give it a try.
PS >
Pictureboxes dont support stretch ...
only imageboxes!
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Apr 18th, 2001, 03:33 PM
#5
Thread Starter
PowerPoster
What are these parameters?
Ok then what should this be equal to in that "stretchblt" API:
dwrop as long
I used this:
StretchBlt Picture2.hdc, 0, 0, 10, 10, Picture1.hdc, 0, 0, 10, 10, 0
Picture1 has a picture in it!
It just draws a small black box in picture2.
What is the problem?
-
Apr 18th, 2001, 04:19 PM
#6
transcendental analytic
stands for dword raster operation, a code that determines how the blitting is performed, use vbsrccopyconstant as default
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
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
|