Unicode Controls & Classes for VB6 - Version 4

clsDIBSection.CreateDC Method

Creates an image (DIB section) with a specified size (in pixels) and assign it to an internal Device context so you can easily use Windows drawing function on it

Syntax
Public Sub CreateDC (ByVal Width As Long, _
ByVal Height As Long, _
Optional ByVal bPP As eBppType = bpp_24, _
Optional ByRef cPal As clsPalette = Nothing)
Parameters
Parameter Description
ByVal Width As Long The width of the image
ByVal Height As Long The height of the image
Optional ByVal bPP As eBppType = bpp_24 The resolution of the image
Optional ByRef cPal As clsPalette = Nothing An optional palette, only for images with a maximum of 8 bpp
Remarks