Esempio n. 1
0
 public override void DrawBitmap(DBitmap bitmap, DPoint pt, double alpha)
 {
     cr.SetSource((ImageSurface)bitmap.NativeBmp, pt.X, pt.Y);
     cr.PaintWithAlpha(alpha);
 }
Esempio n. 2
0
 public override void DrawBitmap(DBitmap bitmap, DRect rect)
 {
     DrawBitmap(bitmap, rect, 1);
 }
Esempio n. 3
0
 public CairoGraphics(DBitmap bmp)
 {
     cr = new Context((ImageSurface)bmp.NativeBmp);
 }
Esempio n. 4
0
 public override void DrawBitmap(DBitmap bitmap, DPoint pt)
 {
     DrawBitmap(bitmap, pt, 1);
 }
Esempio n. 5
0
 void AnnoTools_ImportAnnotationsArea(DBitmap bmp)
 {
     // progress form
     ProgressForm pf = new ProgressForm();
     pf.Text = WbLocale.ImportingAreaAsImage;
     pf.Shown += delegate(object s, EventArgs e)
     {
         Application.DoEvents();
         // import annotations
         undoRedoArea.Start(WbLocale.ImportAnnotations);
         BitmapFigure f = new BitmapFigure(new DRect(10, 10, bmp.Width, bmp.Height), 0, WFHelper.ToImageData(bmp), "annotations.png");
         de.AddFigure(f);
         dvEditor.Update();
         undoRedoArea.Commit();
         // close dialog
         pf.Close();
     };
     pf.ShowDialog();
 }
Esempio n. 6
0
 public override void DrawBitmap(DBitmap bitmap, DPoint pt, double alpha)
 {
 }
Esempio n. 7
0
 public abstract void DrawBitmap(DBitmap bitmap, DRect rect);
Esempio n. 8
0
 public string Copy(List<Figure> figs, out DBitmap bmp, bool bmpAntiAlias, DColor bmpBackgroundColor)
 {
     bmp = FigureSerialize.FormatToBmp(figs, bmpAntiAlias, bmpBackgroundColor);
     return FigureSerialize.FormatToXml(figs, null);
 }
Esempio n. 9
0
 public abstract void DrawBitmap(DBitmap bitmap, DPoint pt);
Esempio n. 10
0
 public abstract void DrawBitmap(DBitmap bitmap, DPoint pt, double alpha);
Esempio n. 11
0
 public WFCairoGraphics(DBitmap bmp)
     : base(bmp)
 {
 }
Esempio n. 12
0
 public override void DrawBitmap(DBitmap bitmap, DRect rect, double alpha)
 {
 }
Esempio n. 13
0
 public override void DrawBitmap(DBitmap bitmap, DRect rect)
 {
 }
Esempio n. 14
0
 public override void DrawBitmap(DBitmap bitmap, DRect rect, double alpha)
 {
     ImageSurface surf = (ImageSurface)bitmap.NativeBmp;
     cr.Save();
     cr.Translate(rect.X, rect.Y);
     cr.Scale(rect.Width / surf.Width, rect.Height / surf.Height);
     cr.SetSource(surf, 0, 0);
     cr.PaintWithAlpha(alpha);
     cr.Restore();
 }
Esempio n. 15
0
 public abstract void DrawBitmap(DBitmap bitmap, DRect rect, double alpha);
Esempio n. 16
0
 public GTKGraphics(DBitmap bmp)
     : base(bmp)
 {
 }
Esempio n. 17
0
 public static DGraphics MakeGraphics(DBitmap bmp)
 {
     return (DGraphics)Activator.CreateInstance(_graphicsClass, new object[] { bmp });
 }
Esempio n. 18
0
 public string Cut(List<Figure> figs, out DBitmap bmp, bool bmpAntiAlias)
 {
     if (CanCopy(figs))
     {
         string data = Copy(figs, out bmp, bmpAntiAlias, DColor.White);
         foreach (Figure f in figs)
             RemoveFigure(f);
         ClearSelected();
         UpdateViewers();
         return data;
     }
     bmp = null;
     return null;
 }
Esempio n. 19
0
 public bool Equals(DBitmap bitmap)
 {
     return nativeBmp == bitmap.NativeBmp;
 }
Esempio n. 20
0
 public BitmapGlyph(DBitmap bmp, DGlyphPosition pos)
 {
     this.bmp = bmp;
     Position = pos;
 }
Esempio n. 21
0
 public override void DrawBitmap(DBitmap bitmap, DPoint pt)
 {
 }