Exemplo n.º 1
0
		/// <summary>
		/// Initializes a new instance of the IndexedBitmap class
		/// </summary>
		/// <param name="generator">Generator to use for the handler</param>
		/// <param name="width">Width of the bitmap in pixels</param>
		/// <param name="height">Height of the bitmap in pixels</param>
		/// <param name="bitsPerPixel">Number of bits per pixel, usually 4 (16 colours), 8 (64 colours), or 8 (256 colours)</param>
		public IndexedBitmap (Generator generator, int width, int height, int bitsPerPixel)
			: base(generator, typeof(IIndexedBitmap))
		{
			this.BitsPerPixel = bitsPerPixel;
			handler = (IIndexedBitmap)Handler;
			handler.Create(width, height, bitsPerPixel);
		}
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the IndexedBitmap class
 /// </summary>
 /// <param name="generator">Generator to use for the handler</param>
 /// <param name="width">Width of the bitmap in pixels</param>
 /// <param name="height">Height of the bitmap in pixels</param>
 /// <param name="bitsPerPixel">Number of bits per pixel, usually 4 (16 colours), 8 (64 colours), or 8 (256 colours)</param>
 public IndexedBitmap(Generator generator, int width, int height, int bitsPerPixel)
     : base(generator, typeof(IIndexedBitmap))
 {
     this.BitsPerPixel = bitsPerPixel;
     handler           = (IIndexedBitmap)Handler;
     handler.Create(width, height, bitsPerPixel);
 }
Exemplo n.º 3
0
		public IndexedBitmap(Generator g, int width, int height, int bitsPerPixel) : base(g, typeof(IIndexedBitmap))
		{
			inner = (IIndexedBitmap)Handler;
			inner.Create(width, height, bitsPerPixel);
		}