Hello Ng,

I'm working on a bitmap printer driver which generates a 1Bpp b/w bitmap.
The surface is a GDI manged bitmap. The whole halftoning is done by GDI
through punting back the DDI function calls. So far so good, now I'm facing
the problem that I should offer the possiblity to change the brightness of
the generated bitmap. I started with changing the COLORINFO structure of
GDIINFO without success. The strange thing is that whenever DrvStrechBitBlt
gets called it seems as it'd work, but the COLORINFO structure which is
passed to the GDIINFO structure doesn't seem to change anything in the case
of <DrvBitBlt>. Are there any GDIINFO or DEVINFO swithes members which I
have to consider?

Yours, Lela

Re: monotholitc printer driver, Birghtness of bitmap by Maxim

Maxim
Thu Nov 24 18:56:59 CST 2005

Sorry, I cannot understand what is Brightness for an 1bpp bitmap. For me,
looks like an oxymoron, like the "color hue of grayscale bitmap".

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"lela" <lela_dd@hotmail.com> wrote in message
news:emO4fvR8FHA.2816@tk2msftngp13.phx.gbl...
> Hello Ng,
>
> I'm working on a bitmap printer driver which generates a 1Bpp b/w bitmap.
> The surface is a GDI manged bitmap. The whole halftoning is done by GDI
> through punting back the DDI function calls. So far so good, now I'm facing
> the problem that I should offer the possiblity to change the brightness of
> the generated bitmap. I started with changing the COLORINFO structure of
> GDIINFO without success. The strange thing is that whenever DrvStrechBitBlt
> gets called it seems as it'd work, but the COLORINFO structure which is
> passed to the GDIINFO structure doesn't seem to change anything in the case
> of <DrvBitBlt>. Are there any GDIINFO or DEVINFO swithes members which I
> have to consider?
>
> Yours, Lela
>
>


Re: monotholitc printer driver, Birghtness of bitmap by 01157026

01157026
Fri Nov 25 00:37:03 CST 2005


Hello Maxim,

thanks for your post, with Brightness I mean that I'd like to change the
treshold values of the dither matrix. Therefore I changed the ulHTPatternSize
to <HT_PATSIZE_USER> and filled in the dither matrix which dimensions are
described through cxHTPat and cxHTPat. In the next step I change the treshold
values of the dither matrix and therfore the halftoned image should result in
a different brightness value.

Best regards, Lela

"Maxim S. Shatskih" wrote:

> Sorry, I cannot understand what is Brightness for an 1bpp bitmap. For me,
> looks like an oxymoron, like the "color hue of grayscale bitmap".
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim@storagecraft.com
> http://www.storagecraft.com
>
> "lela" <lela_dd@hotmail.com> wrote in message
> news:emO4fvR8FHA.2816@tk2msftngp13.phx.gbl...
> > Hello Ng,
> >
> > I'm working on a bitmap printer driver which generates a 1Bpp b/w bitmap.
> > The surface is a GDI manged bitmap. The whole halftoning is done by GDI
> > through punting back the DDI function calls. So far so good, now I'm facing
> > the problem that I should offer the possiblity to change the brightness of
> > the generated bitmap. I started with changing the COLORINFO structure of
> > GDIINFO without success. The strange thing is that whenever DrvStrechBitBlt
> > gets called it seems as it'd work, but the COLORINFO structure which is
> > passed to the GDIINFO structure doesn't seem to change anything in the case
> > of <DrvBitBlt>. Are there any GDIINFO or DEVINFO swithes members which I
> > have to consider?
> >
> > Yours, Lela
> >
> >
>
>

Re: monotholitc printer driver, Birghtness of bitmap by Vipin

Vipin
Tue Nov 29 14:11:32 CST 2005

Just dither the bitmap, the way you want and control the brightness.

--
Vipin Aravind
MVP [Windows - Printing/Imaging]

"Lela" <01157026@fh-wels.at.(dotnotspam)> wrote in message
news:637671DD-2DFC-45FD-A9DB-4C66AFEA6082@microsoft.com...
>
> Hello Maxim,
>
> thanks for your post, with Brightness I mean that I'd like to change the
> treshold values of the dither matrix. Therefore I changed the
> ulHTPatternSize
> to <HT_PATSIZE_USER> and filled in the dither matrix which dimensions are
> described through cxHTPat and cxHTPat. In the next step I change the
> treshold
> values of the dither matrix and therfore the halftoned image should result
> in
> a different brightness value.
>
> Best regards, Lela
>
> "Maxim S. Shatskih" wrote:
>
>> Sorry, I cannot understand what is Brightness for an 1bpp bitmap. For
>> me,
>> looks like an oxymoron, like the "color hue of grayscale bitmap".
>>
>> --
>> Maxim Shatskih, Windows DDK MVP
>> StorageCraft Corporation
>> maxim@storagecraft.com
>> http://www.storagecraft.com
>>
>> "lela" <lela_dd@hotmail.com> wrote in message
>> news:emO4fvR8FHA.2816@tk2msftngp13.phx.gbl...
>> > Hello Ng,
>> >
>> > I'm working on a bitmap printer driver which generates a 1Bpp b/w
>> > bitmap.
>> > The surface is a GDI manged bitmap. The whole halftoning is done by GDI
>> > through punting back the DDI function calls. So far so good, now I'm
>> > facing
>> > the problem that I should offer the possiblity to change the brightness
>> > of
>> > the generated bitmap. I started with changing the COLORINFO structure
>> > of
>> > GDIINFO without success. The strange thing is that whenever
>> > DrvStrechBitBlt
>> > gets called it seems as it'd work, but the COLORINFO structure which is
>> > passed to the GDIINFO structure doesn't seem to change anything in the
>> > case
>> > of <DrvBitBlt>. Are there any GDIINFO or DEVINFO swithes members which
>> > I
>> > have to consider?
>> >
>> > Yours, Lela
>> >
>> >
>>
>>