[Image-SIG] Re: Loading a DDB into PIL Image
Fredrik Lundh
fredrik at pythonware.com
Thu Apr 14 09:56:53 CEST 2005
Marcus Goldfish wrote:
> I use ctypes to capture a device-dependent bitmap in Win32 (~600x400,
> 32bpp), and I would like to process it using PIL. I need a fast way
> to convert the DDB to a PIL Image-- any solutions or suggestions
> (ctypes, win32 solutions acceptable])?
>
> "Fast" means that I need to be able to convert the image in << 1 second.
if you can convert it to a DIB, you can use the BmpImageFile.DibImageFile
constructor. see the ImageGrab module for sample code.
</F>
More information about the Image-SIG
mailing list