Loads the thumbnail from specified Stream on-the-fly.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public Sub LoadThumbnail ( _ stream As Stream, _ width As Integer, _ height As Integer _ )
Type: System.IO.Stream
Stream containing file to load.Type: System.Int32
Width of the thumbnail bounding rectangle. You can pass 0 if you want method to find it automatically (see Remarks section for more details).Type: System.Int32
Height of the thumbnail bounding rectangle. You can pass 0 if you want method to find it automatically (see Remarks section for more details).If multiframe file is loaded, thumbnail for the first frame is taken.
Width and height arguments specify a rectangle to fit the thumbnail in. If you omit one of these arguments (set to 0) it will be calculated automatically to preserve aspect ratio. You cannot specify both arguments to 0 at once.
Dim bitmap As New Aurigma.GraphicsMill.Bitmap bitmap.LoadThumbnail(stream, 100, 100)
Aurigma.GraphicsMill.Bitmap bitmap = new Aurigma.GraphicsMill.Bitmap(); bitmap.LoadThumbnail(stream, 100, 100);