|
-
Jun 19th, 2000, 01:00 AM
#1
Thread Starter
Addicted Member
hello guys,
I have an image box, and a picture box, and put some picture in the image box, and changed the stretch property to True, and then changed the size of the image box as i like, Now i want to move the same picture with the same sizes from the image box to the picture box, if i just do this:
Picture1.picture = Image1.Picture
then the picture in the picture box will be in the real sizes, but i want it to be as the size as in the image box, I hope that u could understand me clearly coz when i read the question again i couldn't understand what i wrote,, any way PLEASE HELP ME,
Thanx
-
Jun 19th, 2000, 01:18 AM
#2
_______
picture
all you can do is set the picture box width and height to
that of the image box...the picture file stays the same size when you adjust it in the image box it's only displayed smaller or bigger...the actual image remains the same as it was when you loaded it.
picture1.width = image1.picture.width
picture1.height = image1.picture.height
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Jun 19th, 2000, 05:39 AM
#3
Thread Starter
Addicted Member
Me very angey
this thing did not work with me, ok you may did not understand me so i will try to explain it more, as you know the image box do not has Handle and hDC, but picturebox has them, any way the user of my app will add a pic in the program and then resize it, and then i will have to adjust the picture like the contrast and other ****, so i will have to use BitBlt and another stuff, and these things need handles and hDC's, so i want to move the picture in imagebox to a picturebox with the same size as you see it but not the real size of the picture, so if i use
Picture1.picture = image1.picture
then the picture in the picture box will be in the real sizes, all i need to do is to copy the picture from the image box too the picture box with the same sizes as in the image box, GOT IT??
PLEASE HELP ME, I REALLY NEED THIS
-
Jun 19th, 2000, 07:56 AM
#4
Thread Starter
Addicted Member
ok i figured out how to do it
thanx any way
-
Jun 19th, 2000, 07:57 AM
#5
transcendental analytic
You seem to want to do a very simple thing in a very complicated way, stretching the picture you can use painpicture method instead. Check it up in vb help
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.
-
Jun 19th, 2000, 08:03 AM
#6
Thread Starter
Addicted Member
yes, but i jusr figured that out now, and i'v done it
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
|