BitmapData.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. using System.Runtime.InteropServices;
  11. namespace System.Drawing.Imaging
  12. {
  13. [StructLayout(LayoutKind.Sequential)]
  14. public sealed class BitmapData {
  15. int width, height, stride;
  16. PixelFormat pixel_format;
  17. IntPtr address;
  18. int reserved;
  19. public int Height {
  20. get {
  21. return height;
  22. }
  23. set {
  24. height = value;
  25. }
  26. }
  27. public int Width {
  28. get {
  29. return width;
  30. }
  31. set {
  32. width = value;
  33. }
  34. }
  35. public PixelFormat PixelFormat {
  36. get {
  37. return pixel_format;
  38. }
  39. set {
  40. pixel_format = value;
  41. }
  42. }
  43. public int Reserved {
  44. get {
  45. return reserved;
  46. }
  47. set {
  48. reserved = value;
  49. }
  50. }
  51. public IntPtr Scan0 {
  52. get {
  53. return address;
  54. }
  55. set {
  56. address = value;
  57. }
  58. }
  59. public int Stride {
  60. get {
  61. return stride;
  62. }
  63. set {
  64. stride = value;
  65. }
  66. }
  67. }
  68. }