public unsafe Pen(ARGB color, float width = 1.0f, GpUnit unit = GpUnit.UnitWorld) { GdiPlus.Init(); Unsafe.SkipInit(out GpPen gpPen); Imports.GdipCreatePen1(color, width, unit, &gpPen).ThrowIfFailed(); _gpPen = gpPen; }
public static GpPen CreatePen(ARGB color, float width = 1.0f, GpUnit unit = GpUnit.UnitWorld) { GpStatus status = Imports.GdipCreatePen1(color, width, unit, out GpPen pen); if (status != GpStatus.Ok) { throw GetExceptionForStatus(status); } return(pen); }
public static extern GpStatus GdipCreatePen1( ARGB color, float width, GpUnit unit, out GpPen pen);
private static extern int GdipDrawImageFX(IntPtr graphics, IntPtr bitmap, ref RECTF source, IntPtr matrix, IntPtr effect, IntPtr imageAttributes, GpUnit srcUnit);
private static extern GdiPlusStatus GdipDrawImageFX(IntPtr graphics, IntPtr bitmap, ref NativeRectFloat source, IntPtr matrix, IntPtr effect, IntPtr imageAttributes, GpUnit srcUnit);
public static extern unsafe GpStatus GdipCreatePen1( ARGB color, float width, GpUnit unit, GpPen *pen);