Esempio n. 1
0
        public bool Initialise(System.Drawing.Size size, TColorFormat format)
        {
            bool changedAttributes = FImageAttributes.CheckChanges(format, size);

            if (changedAttributes || this.Allocated == false)
            {
                Allocate();
                return(true);
            }
            else
            {
                return(false);
            }
        }
Esempio n. 2
0
        public void SetImage(Image <Rgb, float> value)
        {
            lock (FLock)
            {
                bool changedAttributes = FImageAttributes.CheckChanges(TColourFormat.L16, value.Size);

                if (ImageAttributes.Initialised)
                {
                    if (changedAttributes)
                    {
                        Allocate();
                        OnImageAttributesUpdate(ImageAttributes);
                    }

                    this.FImage = value;

                    OnImageUpdate();
                }
            }
        }