ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Problem with ImageEnMView1.MIO.SaveToFile(...);

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
kkelchev Posted - Mar 16 2020 : 13:05:11
Hi,
I'm still with demo version.
I did try DICOM viewer example and I noticed that
SaveAs functionality seems not works.

ImageEnMView1.MIO.SaveToFile(SaveImageEnDialog1.FileName) <----

Is it because trial version
Thanks Kamen

KZK
7   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Mar 18 2020 : 03:37:29
Cool.

Nigel
Xequte Software
www.imageen.com
kkelchev Posted - Mar 17 2020 : 19:54:22
I found solution :)
I took it from another our example.
..\ImageEn\Demos\InputOutput\DicomRange

This one works just fine.

Thanks for our time.

KZK
kkelchev Posted - Mar 17 2020 : 19:20:41
Fine , 10x
But for now, is it possible to extract somehow image/images as Bitmap.


KZK
xequte Posted - Mar 17 2020 : 16:03:22
We'll improve this for the next update.

Nigel
Xequte Software
www.imageen.com
xequte Posted - Mar 17 2020 : 15:44:08
Hi

What is the file extension of SaveImageEnDialog1.FileName?

If you do not pass a filetype to SaveToFile then the file extension is used to determine the type. For TImageEnMIO, it must also be a multi-image format, such as ioGIF, ioTIFF, ioPS, ioPDF, ioDICOM, ioDCX, ioICO

Nigel
Xequte Software
www.imageen.com
kkelchev Posted - Mar 17 2020 : 03:45:03
The code is from provided example:
I notice that example program SaveAs DICOM works fine as expected.

procedure TMainForm.btnSaveClick(Sender: TObject);
var
  i: Integer;
  BMP : TBitmap;
begin
  SaveImageEnDialog1.AutoSetFilterFileType := -1;
  SaveImageEnDialog1.FileName := '';
  if SaveImageEnDialog1.Execute then
  begin
    //set output pixel format to 24 bit
    ImageEnMView1.MIO.Params[0].SamplesPerPixel := 3;
    ImageEnMView1.MIO.Params[0].BitsPerSample := 8;
    ImageEnMView1.MIO.DuplicateCompressionInfo;
    for i := 0 to ImageEnMView1.ImageCount - 1 do
    begin
      ImageEnMView1.GetTIEBitmap(i).PixelFormat := ie24RGB;
      ImageEnMView1.ReleaseBitmap(i);
    end;
   ImageEnMView1.MIO.SaveToFile(SaveImageEnDialog1.FileName); <-- This line do noting.
  end;
end;

KZK
xequte Posted - Mar 16 2020 : 21:36:34
Hi Kamen

Saving should work in the trial version (just with a watermark). Can you show me what code you are using and the result you get?

Nigel
Xequte Software
www.imageen.com