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); } }
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(); } } }