Unicode Controls & Classes for VB6 - Version 4

clsGpGraphics.CreateFromHDC Function

Creates a Graphics object that is associated with a specified device context.

Syntax
Public Function CreateFromHDC (ByVal lHdc As Long, _
Optional ByVal u As GpUnit = UnitPixel, _
Optional ByVal o As GpPixelOffsetMode = PixelOffsetModeDefault, _
Optional ByVal s As GpSmoothingMode = SmoothingModeDefault) As GpStatus
Parameters
Parameter Description
ByVal lHdc As Long The source GDI Device Context
Optional ByVal u As GpUnit = UnitPixel The desired Unit
Optional ByVal o As GpPixelOffsetMode = PixelOffsetModeDefault The desired Offset Mode
Optional ByVal s As GpSmoothingMode = SmoothingModeDefault The desired Smoothing Mode
Remarks