BitmapData.cs 1009 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //
  2. // System.Drawing.Imaging.BitmapData.cs
  3. //
  4. // Author:
  5. // Miguel de Icaza ([email protected]
  6. //
  7. // (C) 2002 Ximian, Inc. http://www.ximian.com
  8. //
  9. using System;
  10. namespace System.Drawing.Imaging
  11. {
  12. public sealed class BitmapData {
  13. int width, height, stride, reserved;
  14. PixelFormat pixel_format;
  15. IntPtr address;
  16. public int Height {
  17. get {
  18. return height;
  19. }
  20. set {
  21. height = value;
  22. }
  23. }
  24. public int Width {
  25. get {
  26. return width;
  27. }
  28. set {
  29. width = value;
  30. }
  31. }
  32. public PixelFormat PixelFormat {
  33. get {
  34. return pixel_format;
  35. }
  36. set {
  37. pixel_format = value;
  38. }
  39. }
  40. public int Reserved {
  41. get {
  42. return reserved;
  43. }
  44. set {
  45. reserved = value;
  46. }
  47. }
  48. public IntPtr Scan0 {
  49. get {
  50. return address;
  51. }
  52. set {
  53. address = value;
  54. }
  55. }
  56. public int Stride {
  57. get {
  58. return stride;
  59. }
  60. set {
  61. stride = value;
  62. }
  63. }
  64. }
  65. }