/// <summary>
 /// Clones this object so it can be safely read from another thread.
 /// </summary>
 /// <remarks>
 /// The clone will point to the original gray image.
 /// </remarks>
 public virtual GradientBitmap Clone(GrayBitmap newClonedGrayImage)
 {
     GradientBitmap clone = new GradientBitmap(newClonedGrayImage);
     clone.maximumGradientValue = this.maximumGradientValue;
     if (this.bitmap != null)
         clone.bitmap = (Bitmap)this.bitmap.Clone();
     return clone;
 }
Example #2
0
        /// <summary>
        /// Clones this object so it can be safely read from another thread.
        /// </summary>
        /// <remarks>
        /// The clone will point to the original gray image.
        /// </remarks>
        public virtual GradientBitmap Clone(GrayBitmap newClonedGrayImage)
        {
            GradientBitmap clone = new GradientBitmap(newClonedGrayImage);

            clone.maximumGradientValue = this.maximumGradientValue;
            if (this.bitmap != null)
            {
                clone.bitmap = (Bitmap)this.bitmap.Clone();
            }
            return(clone);
        }
Example #3
0
 public GrayBitmap()
 {
     gradient = new GradientBitmap(this);
 }
 /// <summary>
 /// Clones all attributes from another GradientBitmap into this existing one.
 /// </summary>
 public virtual void CopyFrom(GradientBitmap model)
 {
     this.maximumGradientValue = model.maximumGradientValue;
     this.bitmap = (Bitmap)model.bitmap.Clone();
 }
Example #5
0
 /// <summary>
 /// Clones all attributes from another GradientBitmap into this existing one.
 /// </summary>
 public virtual void CopyFrom(GradientBitmap model)
 {
     this.maximumGradientValue = model.maximumGradientValue;
     this.bitmap = (Bitmap)model.bitmap.Clone();
 }
Example #6
0
 public GrayBitmap()
 {
     gradient = new GradientBitmap(this);
 }