internal static extern IntPtr gflAllockBitmap(GFL_BITMAP_TYPE bitmap_type, Int32 width, Int32 height, UInt32 line_padding, ref GFL_COLOR color);
private static extern GFL_ERROR gflRotate(IntPtr src, IntPtr dst, int angle, ref GFL_COLOR bgColor);
private static extern GFL_ERROR gflRotateFine( IntPtr src,IntPtr dst, double angle,ref GFL_COLOR bgColor);
internal static extern GFL_ERROR gflRotateFine(GFL_BITMAP src, ref GFL_BITMAP dst, double angle,ref GFL_COLOR bgColor);
internal static GFL_ERROR gflRotateFine(IntPtr src,double angle, ref GFL_COLOR bgColor) { IntPtr nullPointer = IntPtr.Zero ; return gflRotateFine(src, nullPointer, angle, ref bgColor); }
public GflImage(int width, int height, UInt32 stride, GFL_BITMAP_TYPE type) { GFL_COLOR c = new GFL_COLOR(Color.White) ; m_gfl_bitmap = GflAPI.gflAllockBitmap(type, width, height, stride, ref c); RefreshStruct(); }
internal void Rotate(double angle, Color color, GflImage final) { var c = new GFL_COLOR(color); HandleError(GflAPI.gflRotateFine(m_gfl_bitmap, ref final.m_gfl_bitmap, angle, ref c)); final.RefreshStruct(); }
public GflImage RotateNew(double angle, Color bgColor) { var img = new Gfl.GflImage(1, 1, (UInt32)this.m_gfl_bitmap_struct.LinePadding, this.m_gfl_bitmap_struct.Type); GFL_COLOR c = new GFL_COLOR(bgColor); var err = GflAPI.gflRotateFine(m_gfl_bitmap, ref img.m_gfl_bitmap, angle, ref c); if (err != GFL_ERROR.GFL_NO_ERROR) throw new APIException(err.ToString()); img.RefreshStruct(); return img; }
public void Rotate(int angle, Color bgColor) { GFL_COLOR c = new GFL_COLOR(bgColor); HandleError(GflAPI.gflRotate(m_gfl_bitmap, angle, ref c)); RefreshStruct(); }
public void Rotate(double angle, Color bgColor) { GFL_COLOR c = new GFL_COLOR(bgColor); var err = GflAPI.gflRotateFine(m_gfl_bitmap,angle,ref c); if (err != GFL_ERROR.GFL_NO_ERROR) throw new APIException(err.ToString()); RefreshStruct(); }