Re: Problem with StretchDIBits()

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Dan Mitchell (djmitchella_at_yahoo.com)
Date: 09/09/04


Date: Thu, 09 Sep 2004 09:57:09 -0700


"vipin" <vipin@nospam.com> wrote in
news:#RimrKolEHA.556@tk2msftngp13.phx.gbl:
> Mspaint to my knowlege uses HALFTONE, if I remember properly.

 Doesn't look like it here (XPSP2, paint v5.1). This is actually a really
good example, though -- open Paint, draw a scribble with single-pixel-wide
pen. Use rectangle-select tool, copy that to clipboard. Paste it back,
move it to a clear bit of page. Now shrink it horizontally (say), and
you'll see the lines start to vanish in places.

 Actually, this isn't strictly StretchBlt(HAlFTONE), they actually
resample the image down to the new size -- if you enlarge it again, you
get the distinctive double-wide lines, and the missing pixels don't
reappear. But the effect on shrinking/enlarging the first time is the same
as it'd be with HALFTONE.

 -- dan



Relevant Pages

  • Re: Painting a backdrop
    ... No. Water alone won't cause muslin to pucker or shrink as long as it's pure ... cotton or a cotton/polyester blend. ... The paint job will come out better if you can somehow figure out a way to ...
    (rec.arts.theatre.stagecraft)
  • Re: Problem with StretchDIBits()
    ... >> Mspaint to my knowlege uses HALFTONE, ... Use rectangle-select tool, copy that to clipboard. ... Now shrink it horizontally, ...
    (microsoft.public.win32.programmer.gdi)