I'm having a problem with ImageScale not appearing to be consistent. I've used the below code with two different images. One is 240x84px and the other is 334x40px.
With the first image, if I view the PDF at 100% zoom then the image matches perfectly the actual pixel size of the image. But if I do the same with the second image then it's a much much smaller in the PDF than it should be.
Any pointers? (Code below)
Aspose.Pdf.Image logo = new Aspose.Pdf.Image(sec1);
Stream LogoStream = new MemoryStream(Settings.LogoFile);
logo.ImageInfo.ImageStream = (LogoStream);
logo.ImageInfo.ImageFileType = ImageFileType.Jpeg;
LogoBox.Border = new BorderInfo((int)BorderSide.All, 0.5F, new Aspose.Pdf.Color("#909090"));
logo.ImageScale = 0.663F;
LogoBox.BoxHorizontalPositioning = BoxHorizontalPositioningType.Page;
LogoBox.BoxVerticalPositioning = BoxVerticalPositioningType.Margin;