Results 1 to 10 of 10

Thread: Alternate To StrechBlt

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Is there an alternate API to StrechBlt? It seems to distort the colors on compressing the image.

  2. #2
    Guest
    You can try VB's PaintPicture method.

  3. #3
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355
    yeah but doesnt paintpicture call stretchtblt behind the scenes?
    buzzwords are the language of fools

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288

    Exclamation

    Surprisingly, PaintPicture does a much better job than StrecthBlt.

  5. #5
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355
    yeah but its slow n horrible
    buzzwords are the language of fools

  6. #6
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553
    You can use the SetStretchBltMode API for smooth shrinking (DELETE_SCANS) or enlarging (HALFTONE).

  7. #7
    Guest
    Kenny: Awhile ago, Kedaman did some tests on this and PaintPicture proved to be faster.

    NOTE: StretchBlt draws on DC's, whereas PaintPicture draws on StdPicture objects.


  8. #8
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355
    ok i withdraw whatever i said
    buzzwords are the language of fools

  9. #9
    Guest
    Well, actually, I think StretchBlt is faster for drawing an image without any modification (in which case, you'd use BitBlt).

  10. #10
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355
    yeah, cos bitblt is just a straight memcopy if you use srccopy as the op.

    buzzwords are the language of fools

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