winforms icon indicating copy to clipboard operation
winforms copied to clipboard

Convert Gdi32 GetX to Cswin32

Open lonitra opened this issue 2 years ago • 0 comments

  • 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> to HDC
  • Control.MetafileDCWrapper.cs: Change initialization of BITMAPINFO used in calls GetDIBits and StretchDIBits. Cswin32 definition of BITMAPINFO 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.
Microsoft Reviewers: Open in CodeFlow

lonitra avatar Aug 12 '22 05:08 lonitra