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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 add tagg
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

hamidshali

Iran
51 Posts

Posted - Feb 19 2015 :  02:06:38  Show Profile  Reply
hi a want add tag to dicom file
how
ImageEnIO1.Params.DICOM_Tags.AddTag($0010,$0010,'PN',Pointer(pnm),length(PatientName)+1);

pointer ?
how add pointer data to command
pleaze explane to me with example
tnx

xequte

38616 Posts

Posted - Feb 19 2015 :  15:06:25  Show Profile  Reply
Hi

It is better to use SetTagString:

// Add a "Patient Name" tag to the current Dicom file (or replace tag if it already exists)
ImageEnView1.IO.Params.DICOM_Tags.SetTagString( $0010, $0010, 'Joe Bloggs' );


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

hamidshali

Iran
51 Posts

Posted - Apr 25 2015 :  23:48:02  Show Profile  Reply
i must create childeren data set for one record of dicom tag
please show me byImageEnIO1.Params.DICOM_Tags.AddTag($0010,$0012, DataType: TIEDicomTagType; Data: pointer; DataLen: integer; Children: TObjectList = nil);

that Children: TObjectList = not nil
tnx
Go to Top of Page

xequte

38616 Posts

Posted - Apr 29 2015 :  01:58:47  Show Profile  Reply
Hi

The process is as follows:


Children := TObjectList.Create();
subtags := TIEDicomTags.Create();
subtags.SetTagString(...);
Children.Add(subtags);
ImageEnView1.IO.Params.DICOM_Tags.AddTag(..., Children);


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: