DigitalSignatureObject.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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"), DrawUtils.DefaultFont,
  18. new SolidBrush(Color.Black), AbsLeft * e.ScaleX + 2, AbsTop * e.ScaleY + 0.5f);
  19. }
  20. }
  21. public override void LoadImage()
  22. {
  23. //throw new NotImplementedException();
  24. }
  25. protected override void DrawImageInternal2(IGraphics graphics, PointF upperLeft, PointF upperRight, PointF lowerLeft)
  26. {
  27. //throw new NotImplementedException();
  28. }
  29. protected override void ResetImageIndex()
  30. {
  31. //imageIndex = -1;
  32. }
  33. }
  34. }