Exemplo n.º 1
0
		/// <summary>
		/// Clears out all objects and resources.
		/// </summary>
		private void ClearAll() {
			if (this.mBmpTargaImage != null) {
				this.mBmpTargaImage.Dispose();
				this.mBmpTargaImage = null;
			}
			if (this.mImageByteHandle.IsAllocated)
				this.mImageByteHandle.Free();

			if (this.mThumbnailByteHandle.IsAllocated)
				this.mThumbnailByteHandle.Free();

			this.mObjTargaHeader = new TargaHeader();
			this.mObjTargaExtensionArea = new TargaExtensionArea();
			this.mObjTargaFooter = new TargaFooter();
			this.mTGAFormat = ETGAFormat.UNKNOWN;
			this.mStride = 0;
			this.mPadding = 0;
			this.rows.Clear();
			this.row.Clear();
			this.mFileName = string.Empty;

		}
Exemplo n.º 2
0
		/// <summary>
		/// Creates a new instance of the TargaImage object.
		/// </summary>
		public TargaImage() {
			mObjTargaFooter = new TargaFooter();
			mObjTargaHeader = new TargaHeader();
			mObjTargaExtensionArea = new TargaExtensionArea();
			mBmpTargaImage = null;
			bmpImageThumbnail = null;
		}