My application loads a jpeg image from a file or resource... I can obtain a handle to the bitmap (HBITMAP) that results from the jpeg load.
I need to create a CGapiSurface from the HBITMAP or have some way to blit the image onto an existig CGapiSurface.. either way will suffice. Basically I want to create a surface from a JPEG.
Does anyone see a way that is possible within the GapiDraw framework? I plan on using the CreateSurface() implementation that takes a bitmap file in memory to accomplish this. I assume the bitmap file in memory refers to a bitmap handle (?? is this true Johan). Does this make sense or am I heading in the wrong direction ??
Any help is appreciated.
Thanks.
Jeff
I need to create a CGapiSurface from the HBITMAP or have some way to blit the image onto an existig CGapiSurface.. either way will suffice. Basically I want to create a surface from a JPEG.
Does anyone see a way that is possible within the GapiDraw framework? I plan on using the CreateSurface() implementation that takes a bitmap file in memory to accomplish this. I assume the bitmap file in memory refers to a bitmap handle (?? is this true Johan). Does this make sense or am I heading in the wrong direction ??
Any help is appreciated.
Thanks.
Jeff