Results 1 to 7 of 7

Thread: Bitblt - EDITED

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2002
    Posts
    59

    Bitblt - EDITED

    Ok I got it working thanx a lot but I have one other question. How can i bitblt so that when i copy the whole picturebox it copies all of the other and picture boxes that are inside of it?
    Last edited by Bracol; Nov 29th, 2002 at 08:38 AM.

  2. #2
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    first of all, set att picturebox property scalemode to 3 - pixels...
    then dont use dest.Width/Height, use ScaleWidth/ScaleHeight
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  3. #3
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    you should also set autoredraw to true, and after you've printed something into the picturebox, do dest.refresh
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  4. #4
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    i've downloaded you working program, and i noticed that you're using Width/Height property...that's not good because the width/height are using twips instead of pixels which is aprox 15 times longer...
    that means that instead of blitting a total of 209469 pixels, it's 47130525 pixels....and as you can see, thats 255 times more for the computer to process...
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  5. #5

    Thread Starter
    Member
    Join Date
    Feb 2002
    Posts
    59
    ok i understand that but can you tell me why the second one isn't working?

  6. #6
    Junior Member
    Join Date
    Nov 2002
    Posts
    16
    you're using Width/Height property...that's not good because the width/height are using twips instead of pixels which is aprox 15 times longer
    Cyborg...are you saying that if I have all my picture properites set at twips and I use .scalewidth/.scaleheight it wont working properly?

  7. #7
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    yes, it will work, but there will be too much processing...
    you see...
    the picturebox is built in pixels, but you can scale that to twips which is about 15 times the pixel amount...
    and because pixels are the smallest unit on the screen, you cant use units smaller than pixels....

    so the FASTEST way is to set the ScaleMode to pixels so you have the correct scale, and when getting height/width properties, use scalewidth/scaleheight because they are correctly scaled to pixels, not twips..

    i hope you understand this! it might be a bit confusing
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

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