Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.4 KiB

  1. /**************************************************************************\
  2. *
  3. * Copyright (c) 1999 Microsoft Corporation
  4. *
  5. * Module Name:
  6. *
  7. * bicubic.hpp
  8. *
  9. * Abstract:
  10. *
  11. * Bicubic Resampling code
  12. *
  13. * Created:
  14. *
  15. * 11/03/1999 ASecchia
  16. \**************************************************************************/
  17. #pragma once
  18. class DpOutputBicubicImageSpan : public DpOutputSpan
  19. {
  20. public:
  21. DpBitmap *dBitmap;
  22. BitmapData BmpData;
  23. DpScanBuffer * Scan;
  24. WrapMode BWrapMode;
  25. ARGB ClampColor;
  26. BOOL SrcRectClamp;
  27. GpRectF SrcRect;
  28. GpMatrix WorldToDevice;
  29. GpMatrix DeviceToWorld;
  30. public:
  31. DpOutputBicubicImageSpan(
  32. DpBitmap* bitmap,
  33. DpScanBuffer * scan,
  34. DpContext* context,
  35. DpImageAttributes imageAttributes,
  36. INT numPoints,
  37. const GpPointF *dstPoints,
  38. const GpRectF *srcRect
  39. );
  40. virtual GpStatus OutputSpan(
  41. INT y,
  42. INT xMin,
  43. INT xMax
  44. );
  45. virtual GpStatus OutputSpanIncremental(
  46. INT y,
  47. INT xMin,
  48. INT xMax,
  49. FIX16 x0,
  50. FIX16 y0,
  51. FIX16 dx,
  52. FIX16 dy
  53. );
  54. virtual BOOL IsValid() const { return (dBitmap!=NULL); }
  55. DpScanBuffer* GetScanBuffer(){ return Scan; }
  56. };