ImageGear .NET v25.0 - Updated
ThumbnailFromImGearPage Method




ImageGear.Wpf Assembly > ImageGear.WPF.BitmapSourceConversion Namespace > ImGearBitmapSourceConverter Class : ThumbnailFromImGearPage Method
ImageGear.Core.ImGearPage object to be converted.
Maximum thumbnail width.
Maximum thumbnail height.
Background color for thumbnail.
Horizontal image resolution used for conversion.
Vertical image resolution used for conversion.
Interpolation options used for conversion.
Produces new resized System.Windows.Media.Imaging.BitmapSource from a given ImageGear.Core.ImGearPage.
Syntax
'Declaration
 
Public Function ThumbnailFromImGearPage( _
   ByVal page As ImGearPage, _
   ByVal thumbnailWidth As Integer, _
   ByVal thumbnailHeight As Integer, _
   ByVal color As Color, _
   ByVal ppmX As Integer, _
   ByVal ppmY As Integer, _
   ByVal interpolation As ImGearInterpolationOptions _
) As BitmapSource
'Usage
 
Dim instance As ImGearBitmapSourceConverter
Dim page As ImGearPage
Dim thumbnailWidth As Integer
Dim thumbnailHeight As Integer
Dim color As Color
Dim ppmX As Integer
Dim ppmY As Integer
Dim interpolation As ImGearInterpolationOptions
Dim value As BitmapSource
 
value = instance.ThumbnailFromImGearPage(page, thumbnailWidth, thumbnailHeight, color, ppmX, ppmY, interpolation)
public BitmapSource ThumbnailFromImGearPage( 
   ImGearPage page,
   int thumbnailWidth,
   int thumbnailHeight,
   Color color,
   int ppmX,
   int ppmY,
   ImGearInterpolationOptions interpolation
)
public: BitmapSource* ThumbnailFromImGearPage( 
   ImGearPage* page,
   int thumbnailWidth,
   int thumbnailHeight,
   Color color,
   int ppmX,
   int ppmY,
   ImGearInterpolationOptions* interpolation
) 
public:
BitmapSource^ ThumbnailFromImGearPage( 
   ImGearPage^ page,
   int thumbnailWidth,
   int thumbnailHeight,
   Color color,
   int ppmX,
   int ppmY,
   ImGearInterpolationOptions^ interpolation
) 

Parameters

page
ImageGear.Core.ImGearPage object to be converted.
thumbnailWidth
Maximum thumbnail width.
thumbnailHeight
Maximum thumbnail height.
color
Background color for thumbnail.
ppmX
Horizontal image resolution used for conversion.
ppmY
Vertical image resolution used for conversion.
interpolation
Interpolation options used for conversion.

Return Value

System.Windows.Media.Imaging.BitmapSource object.
See Also

Reference

ImGearBitmapSourceConverter Class
ImGearBitmapSourceConverter Members
ImGearPage Class
ImGearInterpolationOptions Class