Re: OEMStretchBlt invocation
From: vipin (vipin_at_nospam.com)
Date: 08/05/04
- Next message: Jeff Goldner [MS]: "Re: iSCSI initiator and media changer devices"
- Previous message: Mark Roddy: "Re: IoAcquireRemoveLock Causes Crash"
- In reply to: Bobby Mattappally [MS]: "RE: OEMStretchBlt invocation"
- Next in thread: gary: "Re: OEMStretchBlt invocation"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 5 Aug 2004 08:48:21 +0530
Not necesary, you can call StrectcHDIBIts(...)/stretchblt and it would
come to stretchblt(...) in the driver in NT4 where stretchbltrop is called.
The driver basically doesn't distinguish between ddbs and dibs.It always
gets the palette for both types of bitmap. No need to look at the sources of
mspaint, just set the breakpoint on gdi32!StretchDIBits and it will break in
there when you print.
thanks
vipin
"Bobby Mattappally [MS]" <bobbym@online.microsoft.com> wrote in message
news:#QEWvaoeEHA.2868@cpmsftngxa06.phx.gbl...
> Hi ,
> I have tested the OEMUNI ddk sample by creating a red filled rectangle in
> mspaint and printing from it.
> I get DrvStretchBlt and OEMStretchBlt called in the driver.
> Looking thorugh the source for mspaint, GD function being called is
> StretchDIBits.
>
> Hope this helps.
>
> Thank you,
> Bobby Mattappally
> Microsoft DDK Support
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
>
>
>
>
> --------------------
> From: "gary" <gwa000@newsgroups.nospam>
> Subject: OEMStretchBlt invocation
> Date: Mon, 2 Aug 2004 11:05:33 -0400
> Lines: 26
> X-Priority: 3
>
>
>
> i have a Unidrv rendering plug-in that currently has implemented
> OEMStretchBltROP to perform some proprietary scaling. this is
> working as expected.
>
> however, i also want to to the same thing in OEMStretchBlt. does anyone
> know what application call can be made to get this function called.
>
> the SDK call i am using from my application is:
>
> StretchBlt( hPrinter, 1000, 1000, width*3, height*3, hCompatibleDC, 0, 0,
> width, height, SRCCOPY );
>
> when i use this call it invokes OEMStretchBltROP. when i tried changing
the
> destination
> scaling factor (width * 3) from 3 to 1, the DDI function OEMCopyBits gets
> called.
>
> i've tried changing SRCCOPY to some other values with no avail.
>
> does anyone know what SDK function to call so that OEMStretchBlt gets
> called?
>
> thanks!
>
>
> Hi Gary,
> Let me see if I can locate something quick.
> Does it have to be an SDK sample itself?
> Have you tried adding some images to apps like paint or word and printing
> it to the driver?
>
>
- Next message: Jeff Goldner [MS]: "Re: iSCSI initiator and media changer devices"
- Previous message: Mark Roddy: "Re: IoAcquireRemoveLock Causes Crash"
- In reply to: Bobby Mattappally [MS]: "RE: OEMStretchBlt invocation"
- Next in thread: gary: "Re: OEMStretchBlt invocation"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|