Exemple #1
0
 internal static extern IntPtr gflAllockBitmap(GFL_BITMAP_TYPE bitmap_type, Int32 width, Int32 height, UInt32 line_padding, ref GFL_COLOR color);
Exemple #2
0
 private static extern GFL_ERROR gflRotate(IntPtr src, IntPtr dst, int angle, ref GFL_COLOR bgColor);
Exemple #3
0
 private static extern GFL_ERROR gflRotateFine( IntPtr  src,IntPtr dst, double angle,ref GFL_COLOR bgColor);
Exemple #4
0
 internal static extern GFL_ERROR gflRotateFine(GFL_BITMAP src, ref GFL_BITMAP dst, double angle,ref GFL_COLOR bgColor);
Exemple #5
0
 internal static GFL_ERROR gflRotateFine(IntPtr src,double angle, ref GFL_COLOR bgColor)
 {
     IntPtr nullPointer = IntPtr.Zero ;
     return gflRotateFine(src, nullPointer, angle, ref bgColor);
 }
Exemple #6
0
 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();
 }
Exemple #7
0
 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();
 }
Exemple #8
0
 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;
 }
Exemple #9
0
 public void Rotate(int angle, Color bgColor)
 {
     GFL_COLOR c = new GFL_COLOR(bgColor);
     HandleError(GflAPI.gflRotate(m_gfl_bitmap, angle, ref c));
     RefreshStruct();
 }
Exemple #10
0
 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();
 }