DigitalSignatureObject.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Drawing;
  3. using FastReport.Utils;
  4. namespace FastReport
  5. {
  6. /// <summary>
  7. /// The class for representing visible digital signature in the report.
  8. /// </summary>
  9. public partial class DigitalSignatureObject : PictureObjectBase
  10. {
  11. protected override float ImageHeight { get { return 1; } }
  12. protected override float ImageWidth { get { return 1; } }
  13. public override void DrawImage(FRPaintEventArgs e)
  14. {
  15. if (IsDesigning)
  16. {
  17. e.Graphics.DrawString(Res.Get("Objects,DigitalSignatureObject"),
  18. e.Cache.GetFont(DrawUtils.DefaultFont.FontFamily, 8 * e.ScaleX * 96 / DrawUtils.ScreenDpi, FontStyle.Regular),
  19. new SolidBrush(Color.Black),
  20. AbsLeft * e.ScaleX + 2, AbsTop * e.ScaleY + 0.5f);
  21. }
  22. }
  23. public override void LoadImage()
  24. {
  25. //throw new NotImplementedException();
  26. }
  27. protected override void DrawImageInternal2(IGraphics graphics, PointF upperLeft, PointF upperRight, PointF lowerLeft)
  28. {
  29. //throw new NotImplementedException();
  30. }
  31. protected override void ResetImageIndex()
  32. {
  33. //imageIndex = -1;
  34. }
  35. }
  36. }