can you please tell me whats wrong in below code for utilizing the image.HorizontalResolution & image.VerticalResolution. i need to set resolution based on what image is having image.
a. please tell me whats wrong in below code to set resolution
b. always image converts to 96 DPI for both H & V resolution even if my original image has 300 DPI.
c. I do not want to use imageoption because i have to use TiffCompression to make sure image looks good. If i use TiffCompression.Ccitt3 then some of other documents looks little blur ( I think default is TiffCompression.Lzw )
Using image As Image = image.FromFile(inputFileName)
' Get the number of frames in the image.
Dim framesCount As Integer = image.GetFrameCount(FrameDimension.Page)
' Loop through all frames.
For frameIdx As Integer = 0 To framesCount - 1
' Insert a section break before each new page, in case of a multi-frame TIFF.
If Me.framecount > 0 Then
' Select active frame.
' We want the size of the page to be the same as the size of the image.
' Convert pixels to points to size the page to the actual image size.
ps.PageWidth = Aspose.Words.ConvertUtil.PixelToPoint(image.Width, image.HorizontalResolution)
ps.PageHeight = Aspose.Words.ConvertUtil.PixelToPoint(image.Height, image.VerticalResolution)
' Insert the image into the document and position it at the top left corner of the page.
Aspose.Words.Drawing.RelativeVerticalPosition.Page, 0, ps.PageWidth,
Please help me out