gdiplus: Added GdipCloneBrush.

This commit is contained in:
Evan Stade 2007-07-19 18:23:04 -07:00 committed by Alexandre Julliard
parent 7af2e97a4a
commit b2b4b87c3b
3 changed files with 17 additions and 1 deletions

View File

@ -21,6 +21,21 @@
#include "gdiplus.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)
{
COLORREF col = ARGB2COLORREF(color);

View File

@ -43,7 +43,7 @@
@ stub GdipClearPathMarkers
@ stub GdipCloneBitmapArea
@ stub GdipCloneBitmapAreaI
@ stub GdipCloneBrush
@ stdcall GdipCloneBrush(ptr ptr)
@ stdcall GdipCloneCustomLineCap(ptr ptr)
@ stub GdipCloneFont
@ stub GdipCloneFontFamily

View File

@ -64,6 +64,7 @@ GpStatus WINGDIPAPI GdipSetInterpolationMode(GpGraphics*,InterpolationMode);
GpStatus WINGDIPAPI GdipSetPixelOffsetMode(GpGraphics*,PixelOffsetMode);
GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics*,SmoothingMode);
GpStatus WINGDIPAPI GdipCloneBrush(GpBrush*,GpBrush**);
GpStatus WINGDIPAPI GdipCreateSolidFill(ARGB,GpSolidFill**);
GpStatus WINGDIPAPI GdipGetBrushType(GpBrush*,GpBrushType*);
GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*);