Esempio n. 1
0
 /// <summary>
 /// Rents the pixel array from the pool.
 /// </summary>
 private void RentPixels()
 {
     this.pixelBuffer = PixelPool <TColor> .RentPixels(this.Width *this.Height);
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PixelAccessor{TColor}"/> class.
 /// </summary>
 /// <param name="width">The width of the image represented by the pixel buffer.</param>
 /// <param name="height">The height of the image represented by the pixel buffer.</param>
 public PixelAccessor(int width, int height)
     : this(width, height, PixelPool <TColor> .RentPixels(width * height), true)
 {
 }