Results 1 to 5 of 5

Thread: Problem with Stretchblt

  1. #1

    Thread Starter
    Member
    Join Date
    May 2001
    Location
    India
    Posts
    35

    Problem with Stretchblt

    I have a problem with stretchblt. i am trying to stretch a picture in one picture box to fit into another smaller picture box. the progeam works well on one system haveing windows xp. but does not work in systems working on windows 98. is there any system setting i should check? both are set at 1024 x 768 at 32 bit color depth.

    i am desperate. please help.

    sunithi
    I believe... in myself

  2. #2
    PowerPoster Arbiter's Avatar
    Join Date
    Sep 2000
    Location
    Manchester
    Posts
    2,276
    Doesn't work?

    At all?
    Problems with colours?
    Error message?

    Give us a clue....
    Gentile or Jew,
    O you who turn the wheel and look to windward,
    Consider Phlebas, who was once handsome and tall as you...

  3. #3
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    Using SetStretchBltMode with HALFTONE mode? If so:

    HALFTONE

    Maps pixels from the source rectangle into blocks of pixels in the destination rectangle. The average color over the destination block of pixels approximates the color of the source pixels.
    After setting the HALFTONE stretching mode, an application must call the SetBrushOrgEx function to set the brush origin. If it fails to do so, brush misalignment occurs.

    This option is not supported on Windows 95/98/Me.
    Teaudirenopossum.Musasapientumfixaestinaure.
    (I can't hear you. There's a banana in my ear)

  4. #4

    Thread Starter
    Member
    Join Date
    May 2001
    Location
    India
    Posts
    35
    Stretchblt does not work at all. only the blank background of the second picture box remains after the stretchblt operation.

    i have set the autoredraw property to TRUE. is it right?

    i am not using HALFTONE.

    i am using the last parameter as VBSRCCOPY. Tried VBSRCAND and VBSRCPAINT. Nothing worked. only got a blank screen.

    Please help.

    Sunithi
    I believe... in myself

  5. #5
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    Could you give us the code you are using?
    Teaudirenopossum.Musasapientumfixaestinaure.
    (I can't hear you. There's a banana in my ear)

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