Example #1
0
 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;
 }
Example #2
0
        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);
Example #4
0
 private static extern int GdipDrawImageFX(IntPtr graphics, IntPtr bitmap, ref RECTF source, IntPtr matrix, IntPtr effect, IntPtr imageAttributes, GpUnit srcUnit);
Example #5
0
 private static extern GdiPlusStatus GdipDrawImageFX(IntPtr graphics, IntPtr bitmap, ref NativeRectFloat source, IntPtr matrix, IntPtr effect, IntPtr imageAttributes, GpUnit srcUnit);
Example #6
0
 private static extern int GdipDrawImageFX(IntPtr graphics, IntPtr bitmap, ref RECTF source, IntPtr matrix, IntPtr effect, IntPtr imageAttributes, GpUnit srcUnit);
Example #7
0
 public static extern unsafe GpStatus GdipCreatePen1(
     ARGB color,
     float width,
     GpUnit unit,
     GpPen *pen);