Search found 22 matches

by goldrian
Wed Jun 22, 2022 4:03 pm
Forum: Annotations
Topic: Group annotations
Replies: 2
Views: 5737

Re: Group annotations

I'd like to create CustomAnnotations but, to do so, I have to drop the Wpf version and encapsulate the Form version in a WindowsFormHost.
That's not my favorite solution, I have a bad experience of WIndowsFormHost, but since it's the only one I'm trying to stick to this.
by goldrian
Wed Jun 22, 2022 3:48 pm
Forum: Annotations
Topic: Custom Annotation (WPF - WindowsFormHost)
Replies: 2
Views: 5786

Re: Custom Annotation (WPF - WindowsFormHost)

I'm preparing a sample project in which this problem is present.
I forgot to mention that I'm using .Net Core 3.1 dll in a .Net 6 WPF project, using GdViewer in a WindowsFormHost panel (since there's no support for custom annotations in WPF version :( )
I'll send it asap.

Thanks
by goldrian
Fri Jun 17, 2022 6:55 pm
Forum: Annotations
Topic: Custom Annotation (WPF - WindowsFormHost)
Replies: 2
Views: 5786

Custom Annotation (WPF - WindowsFormHost)

Hi! I'm trying to use custom annotations but I'm quite confused... Using the code from the example from https://www.gdpicture.com/guides/gdpicture/GdPicture.NET.14~GdPicture14.AnnotationManager~OnCustomAnnotationPaint_EV.html I try to draw a triangle. It kinda works, even if when I finish the intera...
by goldrian
Thu Jun 16, 2022 5:07 pm
Forum: Annotations
Topic: Group annotations
Replies: 2
Views: 5737

Group annotations

Hi! I need to create grouped annotations, like a cross formed by two lines. I can create a cross by drawing two single lines, but then the two lines are selected and edited individually. Is there a way to group them? (I have to create also more complex things, like arrows + circles + rectangles) Or ...
by goldrian
Thu Jun 16, 2022 4:46 pm
Forum: Annotations
Topic: AddLineArrowAnnot (WPF)
Replies: 1
Views: 5183

AddLineArrowAnnot (WPF)

Hi!

I'm adding by code some arrows to my document using DashCap.Triangle.

That's fine, but how can I edit the DashCap size? I'd need it larger that the default.

And how can I add a DashCap on both side of the line?

Thanks!
by goldrian
Tue Jun 14, 2022 3:58 pm
Forum: Annotations
Topic: Adding annotations to viewer (WPF)
Replies: 2
Views: 5986

Re: Adding annotations to viewer (WPF)

Autoanswer: I'm missing this

Code: Select all

annotMgr.SaveAnnotationsToPage();
:roll:
by goldrian
Tue Jun 14, 2022 3:54 pm
Forum: Annotations
Topic: Adding annotations to viewer (WPF)
Replies: 2
Views: 5986

Adding annotations to viewer (WPF)

Hi! I've seen the examples about adding annotations, but I feel I'm missing something. If I write the following code I see the image but not the ellipse. What's the problem here? viewer.DisplayFromByteArray(bytes); viewer.ZoomMode = ViewerZoomMode.ZoomModeFitToViewer; viewer.MouseMode = ViewerMouseM...
by goldrian
Thu Feb 24, 2022 7:22 pm
Forum: Image Processing & Document Imaging
Topic: DICOM editing
Replies: 3
Views: 6917

Re: DICOM editing

Ok, thanks!

Would it be possible to insert JPG also in the future?

Thank you.
by goldrian
Thu Feb 17, 2022 3:33 pm
Forum: Image Processing & Document Imaging
Topic: DICOM editing
Replies: 3
Views: 6917

DICOM editing

Hi!

Is it possible to open a DICOM and add/remove an image inside it?

Thanks!
by goldrian
Fri Aug 10, 2012 4:07 pm
Forum: Image Processing & Document Imaging
Topic: "UNICODE ASCII" in TagExifUserComment
Replies: 8
Views: 6898

Re: "UNICODE ASCII" in TagExifUserComment

I thought about Opanda too, but Irfanview show the same, and even Windows file properties.
(Note: perhaps only few people are following the specs... that would not be a big news)

However here's one image:
http://www.licantropi.it/TEO_0002.jpg
Thank you.
by goldrian
Fri Aug 10, 2012 3:16 pm
Forum: Image Processing & Document Imaging
Topic: "UNICODE ASCII" in TagExifUserComment
Replies: 8
Views: 6898

Re: "UNICODE ASCII" in TagExifUserComment

I forgot to say that I'm using GdPicture.NET.dll ver.7.4.0.1 with Visual Studio 2010 on Windows 7 64 bit
by goldrian
Fri Aug 10, 2012 3:05 pm
Forum: Image Processing & Document Imaging
Topic: "UNICODE ASCII" in TagExifUserComment
Replies: 8
Views: 6898

Re: "UNICODE ASCII" in TagExifUserComment

I'm trying to use byte[] instead of string. System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding(); byte[] bytes = enc.GetBytes(value); gdi.TagSetValueBytes(imgId, Tags.TagExifUserComment, TagType.TagTypeASCII, bytes); The "ASCII" prefix is no more there, but the value is printed ...
by goldrian
Fri Aug 10, 2012 2:49 pm
Forum: Image Processing & Document Imaging
Topic: "UNICODE ASCII" in TagExifUserComment
Replies: 8
Views: 6898

Re: "UNICODE ASCII" in TagExifUserComment

With this line of code:

Code: Select all

gdi.TagSetValueString(imgId, Tags.TagExifUserComment, TagType.TagTypeASCII, "0");
I get this in Opanda Exif reader:

Image
by goldrian
Fri Aug 10, 2012 1:33 pm
Forum: Image Processing & Document Imaging
Topic: "UNICODE ASCII" in TagExifUserComment
Replies: 8
Views: 6898

Re: "UNICODE ASCII" in TagExifUserComment

Thanks for the answer.
Perhaps I'm doing something wrong, but if I try to set the tag as TagType.TagTypeUndefined, no value is saved at all.
But if I use a TagType.TagTypeASCII I see, in the resulting hex, this prefix: "UNICODE ASCII".
So, not only UNICODE or ASCII, but both of them.
by goldrian
Thu Aug 09, 2012 8:30 pm
Forum: Image Processing & Document Imaging
Topic: "UNICODE ASCII" in TagExifUserComment
Replies: 8
Views: 6898

"UNICODE ASCII" in TagExifUserComment

Hello, I'm having a weird problem. I'm currently writing and reading Exif codes without problems using GdPictureImaging. However I need to write a number into the TagExifUserComment field (don't ask why, customer request). The number is written but using any Exif viewer (Opanda, Irfanview...) the va...