Results 1 to 3 of 3

Thread: picture puzzle

  1. #1

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Question

    I don't know if I understood your question, but I guess what you need is the IMAGE control, which has the property "stretch". If you set it to TRUE, it would stretch your picture to fit in your IMAGE control (no matter if it's bigger or smaller). However, it could lose the proportion of the image. I mean... if you have a rectangular image, and strecth it to a square IMAGE control, the proportion of the image would be changed. Got it?
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  2. #2
    New Member
    Join Date
    Mar 2000
    Posts
    14
    yeap,

    image control will resize the image, but does not have the hdc property which I needed for the BitBlt function.

    thanks anyway.

    FireBeast

  3. #3

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Then you should try the method PaintPicture:

    object.PaintPicture picture, x1, y1, width1, height1, x2, y2, width2, height2, opcode


    As you can see, you have two sets of Height and Width, this is for the source and the target picture. The Source picture should be loaded in a picturebox (invisible, usually) and its name should be place where it says picture (in the command I type). However, the image is actually drawn, and it would disappear if you minimize the form and re-maximize it. I mean, its not loaded, is painted! Perhaps you find any way to "fix" the image in the picture box.


    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

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