This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, January 7, 2011 5:06:01 PM(UTC)
Groups: Registered
Posts: 14
After spending a great deal of time looking through the forums and experimenting, I don't see a way that I can save an image as a ".DCM" file.
We use the LT 14.5 medical com version with VB6. I can load a DCM file, yet it seems that the commondlg does not support the DCM extension. It insists to save a file as DIC.
Is there a way for me to add this file format to the "SAVE" dialog?
#2
Posted
:
Sunday, January 9, 2011 6:33:56 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
If you use our SaveDS method (ILEADDicomDS), you can specify any file name and extension you want.
If you want to change the string in our Save dialog, you can do it using the SetDlgString() method.
#3
Posted
:
Sunday, January 9, 2011 9:38:42 AM(UTC)
Groups: Registered
Posts: 14
It sounds like you are a lot smarter than I am :-) I assume you are referring to a potential DLL call, so I will look for that in the help files. We prefer using your SaveAs Dialog in our VB6 application since it works nicely for saving other types of files. Thus, I will try that route before attempting to write directly to a file (sounds like much extra work to create a custom dialog).
much thanks.
Richard
#4
Posted
:
Monday, January 10, 2011 6:28:47 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Richard,
I am referring to the LEADTOOLS COM objects Common Dialogs. You can call the SetDlgString() method to change the "File Format Strings (Save dialog and File Conversion dialog).
You can change the strings using the following 2 lines:
LRasterKrnDlg.SetDlgString DLG_FF_SAVE_IDSTR_DICOMCOLOR, "DICOM Color (*.dcm)"
LRasterKrnDlg.SetDlgString DLG_FF_SAVE_IDSTR_DICOMGRAY, "DICOM Grayscale (*.dcm)"
However, to actually save with a .DCM extension, the dialog will not do it for you. To do it, you must disable the auto-save feature of the dialog and take the file name returned by the dialog and replace the ".dic" extension with ".dcm", then pass the modified name to ILEADDicomDS.SaveDS() method.
Another option is to create your own dialog or use the common File Save dialog (non-LEAD), which you can control the list of formats displayed in it.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.