Last post Sep 13, 2014 02:55 PM by Rion Williams
Jul 31, 2013 10:04 PM|Einjerin|LINK
Is there any workaround in this problem? My tiff viewer can check up to 600 DPI but the 1200 dpi causes the error
Public Function GetTiffImage(path As String, page As Integer) As Image
Dim ms As MemoryStream = Nothing
Dim SrcImg As Image = Nothing
Dim returnImage As Image = Nothing
SrcImg = Image.FromFile(path)
ms = New MemoryStream()
Dim FrDim As New FrameDimension(SrcImg.FrameDimensionsList(0))
returnImage = Image.FromStream(ms)
Catch ex As Exception
Sep 13, 2014 12:50 PM|PatriceSc|LINK
And the size of the bitmap in pixel is ?
Sep 13, 2014 02:55 PM|Rion Williams|LINK
Are you receiving any exceptions or are there any details besides the "Generic Error" (such as an InnerException message)?
It may be likely that you are actually encountering an OutOfMemoryException if your file is extremely large.