Re: upside down bitmap
- From: Stuart Redmann <DerTopper@xxxxxx>
- Date: Tue, 19 Dec 2006 09:39:29 +0100
Please don't top-post. I know that Joseph is doing it, but noone will rebuke him for this (it would be like telling God to have a decent shave).
Joseph M. Newcomer wrote:
>>(a) read the bitmap
>>(b) create another bitmap which is the inverse
>>(c) BitBlt that bitmap into the desired bitmap.
>>
>>You can implicitly invert a bitmap while transferring it by using PlgBlt,
>> which performs implicitly steps (b) and (c) above. You need to apply the following
>> multipliers to the pt
>>array
>>
>>pt[0].x 1
>>pt[0].y 1
>>pt[1];x 0
>>pt[1].y 1
>>pt[2].x 1
>>pt[2].y 0
William wrote:
Thanks Joseph.
But I still don't know how to do (b) by PlgBlt. I just look at MSDN about
PlgBlt. It says "rotation and shear transformations are not allowed".
If you read the bitmap into the _source device context_, you don't change its transformation, so this restriction of PlgBlt doesn't influence your problem (Keep in mind that only the source device context is restricted to transformations that don't include shearings and rotations). It would be interested, though, why this restriction is necessary at all.
Regards,
Stuart
.
- Follow-Ups:
- Re: upside down bitmap
- From: Joseph M . Newcomer
- Re: upside down bitmap
- References:
- upside down bitmap
- From: William
- Re: upside down bitmap
- From: Joseph M . Newcomer
- Re: upside down bitmap
- From: William
- upside down bitmap
- Prev by Date: Re: not getting the address of dll function
- Next by Date: Re: Comparing a variant string with char*
- Previous by thread: Re: upside down bitmap
- Next by thread: Re: upside down bitmap
- Index(es):
Relevant Pages
|