/// <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;
 }
Beispiel #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);
        }
Beispiel #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();
 }
Beispiel #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();
 }
Beispiel #6
0
 public GrayBitmap()
 {
     gradient = new GradientBitmap(this);
 }