I am attempting to add a picture to a cell using a stream but cannot seem to resize it correctly. When using public int Add(int,int,Stream,int,int); the ratios seem to be ignored andit always inserts a picture of width and height 0.. The following code creates a picture of the corerect height but a width of 'zero'. Inserting the same picture directly from a file correctly creates the picture with correct sizing
Sorry for the lack of information. I am using version 3.9.1.2 and the image is a png which is held in a database. I will try your example to see if it works as exepected
The problem appears to be with the originating images as they have zero resolution in their properties. IE and Microsoft picture manager seem to cater for this somehow, presumably autocorrecting as necessary. I dont suppose you have plans to do something similar? I can send you a sample file if you like.
If it's not very difficult to solve it, I will try to make it in Aspose.Cells. Otherwise, it's better to change your image file to a "normal" image file. Thanks.