Re: OEMStretchBlt invocation

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: vipin (vipin_at_nospam.com)
Date: 08/05/04


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?
>
>



Relevant Pages

  • Re: Connect or disconnect from network
    ... Paul G. Tobey ha escrito: ... > file from the SDK for your target device. ... > Constants and types to access the NDISUIO driver. ... > // by the input buffer length passed to DeviceIoControl. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Switching default audio playback/record devices using Win32 API
    ... via the SDK. ... By sending you to Microsoft support it sounds like they were ... connect using the stack and then using the SDK. ... I'm not sure how to activate their PortCls driver. ...
    (microsoft.public.win32.programmer.mmedia)
  • Re: Switching default audio playback/record devices using Win32 API
    ... via the SDK. ... By sending you to Microsoft support it sounds like they were ... I'm not sure how to activate their PortCls driver. ... is switch the values for some the ...
    (microsoft.public.win32.programmer.mmedia)
  • Re: Accessing port from application.
    ... IN ANY MICROSOFT SDK. ... the driver handle interrupts from the external device and accumulate ... The second point is that the "Standard SDK" isn't standard. ... Tell us what real device you are targeting and we can suggest what you ...
    (microsoft.public.windowsce.app.development)
  • Re: Fail to load driver in the PXA270 platform
    ... There's no such thing as an SDK for a *processor*. ... Pocket PC/WM5 devices, you'd use the Pocket PC SDK. ... Get the driver writer's ... Index/Order value of registry, ...
    (microsoft.public.windowsce.embedded)