1. I create image annotation
Code: Select all
this.gdViewer.AddEmbeddedImageAnnotInteractive(path, false, Color.White, System.Convert.ToSingle(0.02), 1);
Code: Select all
this.gdViewer.BurnAnnotationsToPage(true);
Code: Select all
Annotation annotation = this.gdViewer.GetAnnotationFromIdx(index);
variable_from_annotation_left = annotation.Left;
variable_from_annotation_height = annotation.Height;
variable_from_annotation_top = annotation.Top;
variable_from_annotation_width = annotation.Width
//return float (inch measurement)
Code: Select all
GdPictureImaging imaging = new GdPictureImaging imaging();
int left = variable_from_annotation_left; //it's impossible because returns float (inch)
int top = variable_from_annotation_top;
int width = variable_from_annotation_width;
int height = variable_from_annotation_height;
imaging.DrawGdPictureImage(imageTobeAnnotation, imageOnGdViewer, left, top, width, height, System.Drawing.Drawing2D.InterpolationMode.Default);
1. Is it possible to draw image using GdPictureImaging.DrawGdPictureImage with inch measurement? I want to draw image based on Annotation annotation = this.gdViewer.GetAnnotationFromIdx(index) code.
2. Or, is there a method to get size of annotation NOT in inch but in pixels?
Is there anybody can give me a sample code, please?
Sorry for my bad English.
Thanks in advance