gdiplus: Implement GdipCreateHBITMAPFromBitmap
Massimo Del Fedele
max at veneto.com
Wed Apr 29 07:33:45 CDT 2009
Nikolay Sivov ha scritto:
> Massimo Del Fedele wrote:
>> Massimo Del Fedele ha scritto:
>>> Should work for both DIBs and DDBs format, but strange enough the
>>> IPicture bitmap
>>> inside wine gdiplus bitmap is always a 32 bit DDB by now... haven't
>>> found any
>>> other case.
>>>
>>> Ciao
>>>
>>> Max
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>> sorry again... another dumb copy/paste :-(
>> Former had a spurious FIXME used for debugging purposes
>>
>> Max
> + IPicture_get_Handle(bitmap->image.picture, (OLE_HANDLE*)&hbm);
> + if(!hbm)
> + /* FIXME: return appropriate error code */
> + return GenericError;
> +
> + /* gets bitmap data and find out bitmap's type */
> + if(!(size = GetObjectW(hbm, sizeof(DIBSECTION), &ds)))
> + {
> + ERR("Couldn't get bitmap data\n");
> + return GenericError;
> + }
>
> Could be HICON here (see GdipCreateBitmapFromHICON) or metafile.
> Since there's no tests for that could you please an explicit FIXME for
> that types?
>
>
>
>
>
Done, thank you for the hint :-)
Ciao
Max
More information about the wine-devel
mailing list