protected override void Initialize() { base.Initialize(); this.ClassVersion = 0; this.FilePath = null; this.ImageWidth = 0; this.ImageHeight = 0; this.PixelWidth = 1.0; this.PixelHeight = 1.0; this.IsImageLoaded = true; this.ResolutionUnits = DxfImageResolutionUnits.NoUnits; }
internal override bool TrySetPair(DxfCodePair pair) { switch (pair.Code) { case 1: this.FilePath = (pair.StringValue); break; case 10: this.ImageWidth = (int)(pair.DoubleValue); break; case 11: this.PixelWidth = (pair.DoubleValue); break; case 20: this.ImageHeight = (int)(pair.DoubleValue); break; case 21: this.PixelHeight = (pair.DoubleValue); break; case 90: this.ClassVersion = (pair.IntegerValue); break; case 280: this.IsImageLoaded = BoolShort(pair.ShortValue); break; case 281: this.ResolutionUnits = (DxfImageResolutionUnits)(pair.ShortValue); break; default: return(base.TrySetPair(pair)); } return(true); }