basesurfaced.inc 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. Free Pascal port of the OpenPTC C++ library.
  3. Copyright (C) 2001-2003 Nikolay Nikolov ([email protected])
  4. Original C++ version by Glenn Fiedler ([email protected])
  5. This library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Lesser General Public
  7. License as published by the Free Software Foundation; either
  8. version 2.1 of the License, or (at your option) any later version.
  9. This library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Lesser General Public License for more details.
  13. You should have received a copy of the GNU Lesser General Public
  14. License along with this library; if not, write to the Free Software
  15. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. }
  17. Type
  18. TPTCBaseSurface=Class(TObject)
  19. Private
  20. Function GetWidth : Integer; Virtual; Abstract;
  21. Function GetHeight : Integer; Virtual; Abstract;
  22. Function GetPitch : Integer; Virtual; Abstract;
  23. Function GetArea : TPTCArea; Virtual; Abstract;
  24. Function GetFormat : TPTCFormat; Virtual; Abstract;
  25. Public
  26. Procedure Copy(Var ASurface : TPTCBaseSurface); Virtual; Abstract;
  27. Procedure Copy(Var ASurface : TPTCBaseSurface;
  28. Const ASource, ADestination : TPTCArea); Virtual; Abstract;
  29. Function Lock : Pointer; Virtual; Abstract;
  30. Procedure Unlock; Virtual; Abstract;
  31. Procedure Load(Const APixels : Pointer;
  32. AWidth, AHeight, APitch : Integer;
  33. Const AFormat : TPTCFormat;
  34. Const APalette : TPTCPalette); Virtual; Abstract;
  35. Procedure Load(Const APixels : Pointer;
  36. AWidth, AHeight, APitch : Integer;
  37. Const AFormat : TPTCFormat;
  38. Const APalette : TPTCPalette;
  39. Const ASource, ADestination : TPTCArea); Virtual; Abstract;
  40. Procedure Save(APixels : Pointer;
  41. AWidth, AHeight, APitch : Integer;
  42. Const AFormat : TPTCFormat;
  43. Const APalette : TPTCPalette); Virtual; Abstract;
  44. Procedure Save(APixels : Pointer;
  45. AWidth, AHeight, APitch : Integer;
  46. Const AFormat : TPTCFormat;
  47. Const APalette : TPTCPalette;
  48. Const ASource, ADestination : TPTCArea); Virtual; Abstract;
  49. Procedure Clear; Virtual; Abstract;
  50. Procedure Clear(Const AColor : TPTCColor); Virtual; Abstract;
  51. Procedure Clear(Const AColor : TPTCColor;
  52. Const AArea : TPTCArea); Virtual; Abstract;
  53. Procedure Palette(Const APalette : TPTCPalette); Virtual; Abstract;
  54. Procedure Clip(Const AArea : TPTCArea); Virtual; Abstract;
  55. Function Option(Const AOption : String) : Boolean; Virtual; Abstract;
  56. Function Clip : TPTCArea; Virtual; Abstract;
  57. Function Palette : TPTCPalette; Virtual; Abstract;
  58. Property Width : Integer Read GetWidth;
  59. Property Height : Integer Read GetHeight;
  60. Property Pitch : Integer Read GetPitch;
  61. Property Area : TPTCArea Read GetArea;
  62. Property Format : TPTCFormat Read GetFormat;
  63. End;