Hi Nigel,
Earlier you sent me a beta fix for my DPI problem (ievolutionBeta22119), but now I noticed a strange thing. But it is possible that I need to set something in the C# code below. I think I need help.
I load an image into ieViewer (this is the layer with index 0, the image is DpiX = 300 and DpiY = 300) and then create a layer of type IEText:
//I load the base image (layer index: 0)
ieViewer1.Image.LoadImage(ieViewer1.Image.ExecuteOpenDialog("", "", false, 1));
ieViewer1.Image.CurrentLayer.Locked = true;
ieViewer1.Image.CurrentLayer.Selectable = false;
//I create a simple type of IEText layer
ieViewer1.Image.LayersAdd(IELayerKind.Text);
IETextLayer iETextLayer = (IETextLayer)ieViewer1.Image.CurrentLayer;
iETextLayer.Text = "TEST";
ieViewer1.Image.CurrentLayer.ConvertToImageLayer();
Image img = ieViewer1.Image.GetNetImage();
MessageBox.Show("Loaded ieViewer1.Image (layer index 0) DpiX: " + ieViewer1.Image.DpiX.ToString() +
"\r\nLoaded ieViewer1.Image (layer index 0) DpiY: " + ieViewer1.Image.DpiY.ToString() +
"\r\n\r\n Converted Text to Image DpiX: " + img.HorizontalResolution.ToString() +
"\r\n Converted Text to Image DpiY: " + img.VerticalResolution.ToString());
When I convert the layer of type IEText to image type and get it with the GetNetImage method, why are DpiX and DpiY 96?
As I noticed, any layer type (IEShape, IELine, etc.) I convert to an image has 96 DpiX and DpiY.
How can I tell the conversion to take the DpiX and DpiY values of the layer with index 0 (base image)?
Thanks,
Deeron