GdPicture.NET.14
GdPicture14 Namespace / ThumbnailEx.FileTypeNotSupportedEventHandler Delegate
The path of the unsupported file.
A GdPicture Image Identifier which can be passed by reference.
A reference to a boolean value. If set to true and if a CustomBitmapID parameter is provided, the control will automatically release the CustomBitmapID from the memory.
ExampleExample





In This Topic
ThumbnailEx.FileTypeNotSupportedEventHandler Delegate
In This Topic
Occurs when a file type is not supported by the control. It is possible to provide a specific Bitmap to be used in the item through the CustomBitmap property.
Syntax
'Declaration
 
<GuidAttribute("D48E3ADF-7C99-325D-A791-1B6C6B7BF59F")>
Public Delegate Sub ThumbnailEx.FileTypeNotSupportedEventHandler( _
   ByVal FilePath As String, _
   ByRef CustomBitmapID As Integer, _
   ByRef ReleaseBitmap As Boolean _
) 
[Guid("D48E3ADF-7C99-325D-A791-1B6C6B7BF59F")]
public delegate void ThumbnailEx.FileTypeNotSupportedEventHandler( 
   string FilePath,
   ref int CustomBitmapID,
   ref bool ReleaseBitmap
)
public delegate ThumbnailEx.FileTypeNotSupportedEventHandler( 
    FilePath: String;
   var  CustomBitmapID: Integer;
   var  ReleaseBitmap: Boolean
);
GuidAttribute("D48E3ADF-7C99-325D-A791-1B6C6B7BF59F")
public delegate ThumbnailEx.FileTypeNotSupportedEventHandler( 
   FilePath : String,
   CustomBitmapID : int,
   ReleaseBitmap : boolean
)
[Guid("D48E3ADF-7C99-325D-A791-1B6C6B7BF59F")]
public: __gc __delegate void ThumbnailEx.FileTypeNotSupportedEventHandler( 
   string* FilePath,
   ref int CustomBitmapID,
   ref bool ReleaseBitmap
)
[Guid("D48E3ADF-7C99-325D-A791-1B6C6B7BF59F")]
public delegate void ThumbnailEx.FileTypeNotSupportedEventHandler( 
   String^ FilePath,
   int% CustomBitmapID,
   bool% ReleaseBitmap
)

Parameters

FilePath
The path of the unsupported file.
CustomBitmapID
A GdPicture Image Identifier which can be passed by reference.
ReleaseBitmap
A reference to a boolean value. If set to true and if a CustomBitmapID parameter is provided, the control will automatically release the CustomBitmapID from the memory.
Example
Implementing a custom bitmap for unknown file type.
Private Sub ThumbnailEx1_FileTypeNotSupported(ByVal FilePath As String, ByRef CustomBitmapID As Integer, ByRef ReleaseBitmap As Boolean) Handles ThumbnailEx1.FileTypeNotSupported
ReleaseBitmap = True
Using gdPictureImaging As New GdPictureImaging
   CustomBitmapID = gdPictureImaging.CreateGdPictureImageFromFile("unsupported.png")
End Using
End Sub
See Also