When I handle the TImageEnMView.OnCreateImage event, I don't seem to be able to use Params on the new image. I get an Access Violation in the code below when setting TIFF_Compression.
procedure TForm1.ImageEnMView1CreateImage(Sender: TObject; idx: Integer);
begin
ImageEnMView1.SelectedImage := idx;
ImageEnMView1.Proc.ConvertToBWThreshold( 235 );
ImageEnMView1.MIO.Params[ idx ].TIFF_Compression := ioTIFF_G4FAX;
ImageEnMView1.MIO.Params[ idx ].BitsPerSample := 1;
ImageEnMView1.MIO.Params[ idx ].SamplesPerPixel := 1;
end;
---------------------------
Debugger Exception Notification
---------------------------
Project IETests.exe raised exception class $C0000005 with message 'access violation at 0x00bce0c8: write of address 0x00000040'.
---------------------------
Break Continue Help
---------------------------