Results 1 to 4 of 4

Thread: [RESOLVED] Resizing DC

Hybrid View

  1. #1
    DNA7433
    Guest

    Resolved [RESOLVED] Resizing DC

    i tried searching but i couldn't find anything.

    i've been using pictureboxes as back buffers up until now, but one screen is getting to big to hold in a picture box so i need to create a DC to any size i want...how do i do this?

    thanks

  2. #2
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011
    Use StretchBlt !!!

  3. #3
    Software Eng. Megatron's Avatar
    Join Date
    Mar 1999
    Location
    Canada
    Posts
    11,286
    Use CreateCompatibleDC. To set the dimensions, select a bitmap with the appropiate size into it.

  4. #4
    Software Eng. Megatron's Avatar
    Join Date
    Mar 1999
    Location
    Canada
    Posts
    11,286
    Originally posted by moinkhan
    Use StretchBlt !!!
    Let me elabourate on this a bit (well at least I think you meant this).

    StretchBlt can be used to resize the actual picture e.g. shorten the dimensions by a lot. This can elminate the need to create additional DC's and save memory.

    On the negative side though, you'll lose small portions of the picture.

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