internal static CustomLineCap CreateCustomLineCapObject(IntPtr cap)
        {
            CustomLineCapType capType = CustomLineCapType.Default;
            int status = SafeNativeMethods.Gdip.GdipGetCustomLineCapType(new HandleRef(null, cap), out capType);

            if (status != 0)
            {
                SafeNativeMethods.Gdip.GdipDeleteCustomLineCap(new HandleRef(null, cap));
                throw SafeNativeMethods.Gdip.StatusException(status);
            }
            switch (capType)
            {
            case CustomLineCapType.Default:
                return(new CustomLineCap(cap));

            case CustomLineCapType.AdjustableArrowCap:
                return(new AdjustableArrowCap(cap));
            }
            SafeNativeMethods.Gdip.GdipDeleteCustomLineCap(new HandleRef(null, cap));
            throw SafeNativeMethods.Gdip.StatusException(6);
        }
Ejemplo n.º 2
0
Archivo: Others.cs Proyecto: misiek/foo
 public static extern GpStatus GdipGetCustomLineCapType(GpCustomLineCap customCap,
 out CustomLineCapType capType);
Ejemplo n.º 3
0
 internal static int GdipGetCustomLineCapType(HandleRef customCap, out CustomLineCapType capType) => GdipGetCustomLineCapType_ptr.Delegate(customCap, out capType);
Ejemplo n.º 4
0
 internal static extern int GdipGetCustomLineCapType(HandleRef customCap, 
                                                     out CustomLineCapType capType);
Ejemplo n.º 5
0
 GdipGetCustomLineCapType(GpCustomLineCap customCap,
                          out CustomLineCapType capType);