Results 1 to 6 of 6

Thread: Please Help? wierd question

  1. #1

    Thread Starter
    Addicted Member Mih_Flyer's Avatar
    Join Date
    Mar 2000
    Location
    some place there
    Posts
    241

    Angry

    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

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    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

  3. #3

    Thread Starter
    Addicted Member Mih_Flyer's Avatar
    Join Date
    Mar 2000
    Location
    some place there
    Posts
    241

    Angry 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

  4. #4

    Thread Starter
    Addicted Member Mih_Flyer's Avatar
    Join Date
    Mar 2000
    Location
    some place there
    Posts
    241

    Talking

    ok i figured out how to do it
    thanx any way

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  6. #6

    Thread Starter
    Addicted Member Mih_Flyer's Avatar
    Join Date
    Mar 2000
    Location
    some place there
    Posts
    241
    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
  •  



Click Here to Expand Forum to Full Width