描述
使用当前的默认打印机和打印机设置打印指定的图像。
PowerBASIC 语法
FUNCTION GdiPlusPrintImage ( _ BYREF wszFileName AS WSTRINGZ, _ OPTIONAL BYVAL bStretch AS LONG, _ OPTIONAL BYVAL nStretchMode AS LONG _ ) AS LONG |
参数
wszFileName
[in]要打印的图像文件的名称。
bStretch
[in, opt]TRUE或FALSE。如果为TRUE,则将图像拉伸到纸张尺寸。
nStretchMode
[in, opt]拉伸模式。默认值:InterpolationModeHighQualityBicubic。
InterpolationModeLowQuality = 1
InterpolationModeHighQuality = 2
InterpolationModeBilinear = 3
InterpolationModeBicubic = 4
InterpolationModeNearestNeighbor = 5
InterpolationModeHighQualityBilinear = 6
InterpolationModeHighQualityBicubic = 7
返回值
如果位图已成功打印,则返回TRUE,否则返回FALSE。
引用文件 #INCLUDE Once
GdipUtils.inc


