Results 1 to 4 of 4

Thread: Bug in GetThumbnailImage method?

Threaded View

  1. #1

    Thread Starter
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    Bug in GetThumbnailImage method?

    The image loads halfway or so.... with the last loaded vertical line clipped... (see attached picture)...

    What's the deal with this?


    VB Code:
    1. Dim r As Drawing.Image
    2.         r = Drawing.Image.FromStream(ms)
    3.         Dim dummyCallBack As System.Drawing.Image.GetThumbnailImageAbort
    4.         dummyCallBack = New _
    5.          System.Drawing.Image.GetThumbnailImageAbort(AddressOf DummyImagePointer)
    6.         Dim thumbNailImg As System.Drawing.Image
    7.         Dim g As Drawing.Size
    8.         g = r.PhysicalDimension.ToSize
    9.         Dim c As Double
    10.         c = g.Width / 100
    11.         thumbNailImg = r.GetThumbnailImage(100, Convert.ToInt32(g.Height / c), dummyCallBack, IntPtr.Zero)
    12.  
    13.         f.PictureBox1.Image = thumbNailImg
    14.  
    15. 'this function forces continued execution of the getThumnailImage function
    16. Public Function DummyImagePointer() As Boolean
    17.         Return False
    18. End Function
    Attached Images Attached Images  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width