|
|
|
|
|
SftPrintPreview.GetDDBSize Method |
Retrieves the display and print size of a device dependent bitmap.
Syntax
|
VB.NET |
object.GetDDBSize(ByVal BitmapHandle As Integer, ByVal PrinterDC As Integer, ByRef WPrinterPix As Integer, ByRef HPrinterPix As Integer, ByRef WDispPix As Integer, ByRef HDispPix As Integer) |
||
|
VB |
object.GetDDBSize(ByVal BitmapHandle As Long, ByVal PrinterDC As Long, WPrinterPix As Long, HPrinterPix As Long, WDispPix As Long, HDispPix As Long) |
||
|
C#.NET |
void object.GetDDBSize(int BitmapHandle, int PrinterDC, out int WPrinterPix, out int HPrinterPix, out int WDispPix, out int HDispPix); |
||
|
VC++ |
HRESULT object->GetDDBSize(long BitmapHandle, long PrinterDC, long* WPrinterPix, long* HPrinterPix, long* WDispPix, long* HDispPix); |
||
|
C |
HRESULT object->raw_GetDDBSize(long BitmapHandle, long PrinterDC, long* WPrinterPix, long* HPrinterPix, long* WDispPix, long* HDispPix); |
||
|
Delphi |
procedure object.GetDDBSize(BitmapHandle : Integer, PrinterDC : Integer, out WPrinterPix : Integer, out HPrinterPix : Integer, out WDispPix : Integer, out HDispPix : Integer); |
object
A SftPrintPreview object.
BitmapHandle
The bitmap handle of the bitmap, for which the dimensions are returned.
PrinterDC
The printer device context.
WPrinterPix
Returns the printed width of the bitmap (in pixels).
HPrinterPix
Returns the printed height of the bitmap (in pixels).
WDispPix
Returns the screen width of the bitmap (in pixels).
HDispPix
Returns the screen height of the bitmap (in pixels).
Comments
The GetDDBSize method retrieves the display and print size of a device dependent bitmap.
This method is not supported for use with Visual Basic 6.0
Device dependent bitmaps (screen bitmaps) can be printed using the PrintDDB method. Screen bitmaps cannot usually not be printed without losing their original size (e.g., using BitBlt). The PrintDDB method is used to print bitmaps instead. When printing a screen bitmap, the width and height of the bitmap need to be scaled to retain their approximate original dimensions once printed.