@mudassir.fayyaz ,
earlier my tif image was not getting load and this issue is fixed now, but when I am doing rotation of loaded tiff image,I am getting Framework exception while saving time ,I am getting below exception:
Image export failed.
Type : Aspose.Imaging.CoreExceptions.ImageSaveException
Message : Image export failed.
HResult : 0x80131500
Source : Aspose.Imaging
at Aspose.Imaging.Image.Save(Stream stream, ImageOptionsBase optionsBase, Rectangle boundsRectangle)
at Aspose.Imaging.Image.Save(Stream stream, ImageOptionsBase optionsBase)
Caused by:
Type : Aspose.Imaging.CoreExceptions.FrameworkException
Message : Cannot allocate so many bytes. Use LoadPartialPixels instead.
HResult : 0x80131500
Source : Aspose.Imaging
at .(Object , Int32 )
at .(Int32 )
at .( , Rectangle , Int32 , Int32 , Int32 , Boolean )
at .(Int32 , Int32 , Int32 , Rectangle )
at . (Rectangle )
at .LoadRawData(Rectangle , RawDataSettings , IPartialRawDataLoader )
at .LoadPartialArgb32Pixels(Rectangle , IPartialArgb32PixelLoader )
at Aspose.Imaging.RasterImage.. (Rectangle )
at .( , IList`1 )
at .(Rectangle , , , Int32 , Int32 )
at Aspose.Imaging.RasterImage.(Rectangle , Int32[] , Boolean , IPartialArgb32PixelLoader )
at Aspose.Imaging.RasterImage.(Rectangle , Boolean , IPartialArgb32PixelLoader )
at Aspose.Imaging.RasterImage.LoadArgb32Pixels(Rectangle rectangle)
at .. (Rectangle )
at .( , IList`1 )
at .(Rectangle , , , Int32 , Int32 )
at . (TiffStreamReader , Rectangle , IPartialArgb32PixelLoader )
at .LoadPartialArgb32Pixels(Rectangle , IPartialArgb32PixelLoader )
at Aspose.Imaging.RasterImage.. (Rectangle )
at .( , IList`1 )
at .(Rectangle , , , Int32 , Int32 )
at Aspose.Imaging.RasterImage.(Rectangle , Int32[] , Boolean , IPartialArgb32PixelLoader )
at Aspose.Imaging.RasterImage.(Rectangle , Boolean , IPartialArgb32PixelLoader )
at Aspose.Imaging.RasterImage.LoadPartialArgb32Pixels(Rectangle desiredRectangle, IPartialArgb32PixelLoader pixelLoader)
at .(RasterImage , Rectangle , IPartialArgb32PixelLoader )
at Aspose.Imaging.RasterCachedImage.CacheData()
at Aspose.Imaging.FileFormats.Tiff.TiffImage.CacheData()
at Aspose.Imaging.DataStreamSupporter.(Stream )
at Aspose.Imaging.Image.Save(Stream stream, ImageOptionsBase optionsBase, Rectangle boundsRectangle)
Caused by:
Type : Aspose.Imaging.CoreExceptions.FrameworkException
Message : Cannot allocate so many bytes. Use LoadPartialPixels instead.
HResult : 0x80131500
Source : Aspose.Imaging
at Aspose.Imaging.RasterImage..Process(Rectangle , Int32[] , Point , Point )
at Aspose.Imaging.RasterImage..Process(Rectangle , Int32[] , Point , Point )
at .Process(Rectangle , Byte[] , Point , Point )
at .(Byte[][] )
at .(Object , Int32 )
Please find the Tif Image file and exception snap attached.
AsposeFrameWorkException.jpg (68.3 KB)
Kindly help me short it out.