Re: Possible to copy regions?

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



What about selecting the region into the destination DC with
SelectClipRgn().

Then use BitBlt() to copy the source to the destination.

Mark


--
Mark Salsbery
Microsoft MVP - Visual C++
"Harish" <Harish@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0AC418F5-ABEF-49C1-B4BE-DDDB80E4D5CE@xxxxxxxxxxxxxxxx
There are two device contexts (source and destination),
created on two different windows.
Source draws a valid bitmap. Destination is a blank bitmap.
I have created two identical polygon regions (source and destination).
The source region has copied a region from source DC.
Is it possible to copy the region from source DC to destination DC?
(Right now I am copying pixel by pixel if the pixel falls in the
region by calling PtInRegion(), but it is taking too long.)
--Harish



.



Relevant Pages

  • Re: nonlinear bitmap stretch algorithm
    ... Where s and d are the source and destination dimensions. ... position x,y should get the pixel value in the original image at ... > I'm looking for an algorithm that would do a nonlinear bitmap stretch, ... > amount of stretch increases as you move toward the edges. ...
    (comp.graphics.algorithms)
  • Re: Alphablending
    ... the alpha value already in the render target. ... Source and destination refers to background and foregound image in the docs I read. ... What really happens is that the colors from a source pixel and a destination pixel are weighted, e.g. they are multiplied, each of the components against the alpha value. ... Strong background, weak foreground, or visa versa. ...
    (alt.lang.asm)
  • Re: dx upgrade - unexpected network connection
    ... Sandi Hardmeier - Microsoft MVP since 1999 ... > owner of the destination domain suggests ... >>Hyperlinks are used to ensure answers remain current. ... >>> Internet Protocol ...
    (microsoft.public.security)
  • Re: Permissions
    ... destination point. ... Microsoft MVP - Windows Desktop Experience ... Please Reply to the Newsgroup ...
    (microsoft.public.windows.vista.general)