Example #1
0
        //public void LoadECATImage( string Path )
        //{	
			
        //    //DisposePicBoxImage();
        //    // create new bitmap from path
        //    //RAWImage.ColorOrder.
        //    //RAWImage.Format.Interleaved
        //    //EcatImageReader ecat = new EcatImageReader();
        //    //Bitmap img =(Bitmap)ecat.read( Path, 0 );
			 
        //    //LoadImageHelper( img );
        //}

		public void LoadRawImage( string Path,int BitsPerPixel, int Offset, int Width, int Height, int NumberOfImages , RAWImage.Format format)
		{	
			
			//DisposePicBoxImage();
			// create new bitmap from path			
			RAWImage raw = new RAWImage();
			raw.LoadImage( Path, BitsPerPixel, Offset,Width,Height,NumberOfImages,format );
			 
			LoadImageHelper( raw.Images );
			this.filePath = Path;
            FireFileLoaded();
		}
        public void LoadRawImage(string Path, int BitsPerPixel, int Offset, int Width, int Height, int NumberOfImages, RAWImage.Format format)
        {
            try
            {
                this.CloseFile();
                fileLoadPerformed = true;
                LoadAssociatedAnnotations(Path);
                this.ImageViewer.LoadRawImage(Path, BitsPerPixel, Offset, Width, Height, NumberOfImages, format);
                fileName = Util.GetFileName(Path);


                fileType = FileType.RAW;
                FireFileLoaded();
            }
            catch { }
            finally
            {
                fileLoadPerformed = false;
            }
        }