Re: Possible to copy regions?
- From: "Mark Salsbery [MVP]" <MarkSalsbery[MVP]@newsgroup.nospam>
- Date: Wed, 8 Aug 2007 12:36:38 -0700
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
.
- Prev by Date: A generic error occurred in GDI+.
- Next by Date: Re: EnumFontFamiliesEx in C#
- Previous by thread: A generic error occurred in GDI+.
- Next by thread: Problem with DocumentProperties under IIS (on network printers)
- Index(es):
Relevant Pages
|