gdiplus: Added GdipCloneBrush.
This commit is contained in:
parent
7af2e97a4a
commit
b2b4b87c3b
|
@ -21,6 +21,21 @@
|
||||||
#include "gdiplus.h"
|
#include "gdiplus.h"
|
||||||
#include "gdiplus_private.h"
|
#include "gdiplus_private.h"
|
||||||
|
|
||||||
|
GpStatus WINGDIPAPI GdipCloneBrush(GpBrush *brush, GpBrush **clone)
|
||||||
|
{
|
||||||
|
if(!brush || !clone)
|
||||||
|
return InvalidParameter;
|
||||||
|
|
||||||
|
*clone = GdipAlloc(sizeof(GpBrush));
|
||||||
|
if (!*clone) return OutOfMemory;
|
||||||
|
|
||||||
|
memcpy(*clone, brush, sizeof(GpBrush));
|
||||||
|
|
||||||
|
(*clone)->gdibrush = CreateBrushIndirect(&(*clone)->lb);
|
||||||
|
|
||||||
|
return Ok;
|
||||||
|
}
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipCreateSolidFill(ARGB color, GpSolidFill **sf)
|
GpStatus WINGDIPAPI GdipCreateSolidFill(ARGB color, GpSolidFill **sf)
|
||||||
{
|
{
|
||||||
COLORREF col = ARGB2COLORREF(color);
|
COLORREF col = ARGB2COLORREF(color);
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
@ stub GdipClearPathMarkers
|
@ stub GdipClearPathMarkers
|
||||||
@ stub GdipCloneBitmapArea
|
@ stub GdipCloneBitmapArea
|
||||||
@ stub GdipCloneBitmapAreaI
|
@ stub GdipCloneBitmapAreaI
|
||||||
@ stub GdipCloneBrush
|
@ stdcall GdipCloneBrush(ptr ptr)
|
||||||
@ stdcall GdipCloneCustomLineCap(ptr ptr)
|
@ stdcall GdipCloneCustomLineCap(ptr ptr)
|
||||||
@ stub GdipCloneFont
|
@ stub GdipCloneFont
|
||||||
@ stub GdipCloneFontFamily
|
@ stub GdipCloneFontFamily
|
||||||
|
|
|
@ -64,6 +64,7 @@ GpStatus WINGDIPAPI GdipSetInterpolationMode(GpGraphics*,InterpolationMode);
|
||||||
GpStatus WINGDIPAPI GdipSetPixelOffsetMode(GpGraphics*,PixelOffsetMode);
|
GpStatus WINGDIPAPI GdipSetPixelOffsetMode(GpGraphics*,PixelOffsetMode);
|
||||||
GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics*,SmoothingMode);
|
GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics*,SmoothingMode);
|
||||||
|
|
||||||
|
GpStatus WINGDIPAPI GdipCloneBrush(GpBrush*,GpBrush**);
|
||||||
GpStatus WINGDIPAPI GdipCreateSolidFill(ARGB,GpSolidFill**);
|
GpStatus WINGDIPAPI GdipCreateSolidFill(ARGB,GpSolidFill**);
|
||||||
GpStatus WINGDIPAPI GdipGetBrushType(GpBrush*,GpBrushType*);
|
GpStatus WINGDIPAPI GdipGetBrushType(GpBrush*,GpBrushType*);
|
||||||
GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*);
|
GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*);
|
||||||
|
|
Loading…
Reference in New Issue