[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: gdiplus: Implement GdipCreateHBITMAPFromBitmap
From: Massimo Del Fedele <max () veneto ! com>
Date: 2009-04-29 12:33:45
Message-ID: gt9hf9$qe4$2 () ger ! gmane ! org
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic