Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BitmapWorker"/> class.
 /// </summary>
 /// <param name="a">a.</param>
 BitmapWorker(System.Drawing.Bitmap a)
 {
     holder = new LockBitmap(a);
     if (!bitmaplock)
     {
         holder.LockBits(); bitmaplock = true;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BitmapWorker"/> class.
 /// </summary>
 /// <param name="filename">The filename.</param>
 public BitmapWorker(String filename)
 {
     holder = new LockBitmap(new System.Drawing.Bitmap(filename));
     if (!bitmaplock)
     {
         holder.LockBits(); bitmaplock = true;
     }
 }