winforms
winforms copied to clipboard
Convert Gdi32 GetX to Cswin32
- Convert
GetBitmapBits
,GetBkColor
,GetBkMode
,GetBrushOrgEx
,GetClipBox
,GetClipRgn
,GetCurrentObject
,GetDeviceCaps
,GetDIBits
,GetMapMode
,GetNearestColor
,GetObjectType
,GetRegionData
,GetRgnBox
,GetROP2
,GetStockObject
,GetSystemPaletteEntries
,GetTextAlign
,GetTextColor
,GetTextExtentPoint32W
,GetTextMetrics
,GetViewportExtEx
,GetViewportOrgEx
,GetWorldTransform
,StretchDIBits
,GetObject
,GetPaletteEntries
,GetTextExtendPoint32W
- Move
SelectPaletteScope
to PInvoke folder - Add
IHandle<HDC>
toHDC
-
Control.MetafileDCWrapper.cs
: Change initialization ofBITMAPINFO
used in callsGetDIBits
andStretchDIBits
. Cswin32 definition ofBITMAPINFO
contains trailing array thus we now need to manually allocate enough space for the bitmap colors. Also done some re-arrangement of code to try to reduce nesting.