Called from: => HB_HHASKEY( 0 )
Called from: .\source\classes\FWPDF.PRG => FWPDF:GETIMAGEFROMFILE( 732 )
Called from: .\source\classes\FWPDF.PRG => FWPDF:PRINTIMAGE( 796 )
Called from: => HB_HHASKEY( 0 )
Called from: .\source\classes\FWPDF.PRG => FWPDF:GETIMAGEFROMFILE( 732 )
Called from: .\source\classes\FWPDF.PRG => FWPDF:PRINTIMAGE( 796 )
HPDF_LoadPngImageFromFile
HPDF_LoadJpegImageFromFile
HPDF_LoadPngImageFromMem
HPDF_LoadJpegImageFromMem
HPDF_LoadRawImageFromMem
1.png (1,006,696 bytes) --> 11.png (165,938 bytes)
3.png ( 86,227 bytes) --> 33.png ( 83,362 bytes)
#include "fivewin.ch"
REQUEST FWHARU
function Main()
local oPrn, oFont, oPen, oBrush
local cPdfFile
local uImage
local nRow, nCol, nWidth, nHeight
local s1, s2
TPrinter():lUseHaruPDF := .t.
if MsgYesNo( "HaruPdf?" )
cPdfFile := "test.pdf"
endif
PRINT oPrn PREVIEW FILE cPdfFile
DEFINE FONT oFont NAME "ARIAL" SIZE 0,-20 OF oPrn
DEFINE PEN oPen WIDTH 1 OF oPrn
DEFINE BRUSH oBrush FILE "c:\fwh\bitmaps\backgrnd\browback.bmp"
PAGE
nWidth := nHeight := 2
nRow := 1
nCol := 0.75
uImage := "https://imagizer.imageshack.com/img923/1482/4FId0E.png"
oPrn:Box( nRow, nCol, nRow + nHeight, nCol + nWidth, oPen, nil, nil, "INCHES" )
@ nRow, nCol PRINT TO oPrn IMAGE uImage SIZE nWidth, nHeight INCHES
nCol += 0.5 + nWidth
uImage := "http://byte-one.com/2.png"
oPrn:Box( nRow, nCol, nRow + nHeight, nCol + nWidth, oPen, nil, nil, "INCHES" )
@ nRow, nCol PRINT TO oPrn IMAGE uImage SIZE nWidth, nHeight INCHES
nCol += 0.5 + nWidth
uImage := "https://imagizer.imageshack.com/img924/4041/WWsR34.png"
oPrn:Box( nRow, nCol, nRow + nHeight, nCol + nWidth, oPen, nil, nil, "INCHES" )
@ nRow, nCol PRINT TO oPrn IMAGE uImage SIZE nWidth, nHeight INCHES
nWidth := 6
nHeight := 3
nRow := 3.5
nCol := 1
uImage := "https://imagizer.imageshack.com/img923/1482/4FId0E.png"
oPrn:Box( nRow, nCol, nRow + nHeight, nCol + nWidth, oPen, oBrush, nil, "INCHES" )
@ nRow, nCol PRINT TO oPrn IMAGE uImage SIZE nWidth, nHeight INCHES
nWidth := 6
nHeight := 1
nRow := 7.0
nCol := 1
uImage := "https://imagizer.imageshack.com/img924/4041/WWsR34.png"
oPrn:Box( nRow, nCol, nRow + nHeight, nCol + nWidth, oPen, nil, nil, "INCHES" )
@ nRow, nCol PRINT TO oPrn IMAGE uImage SIZE nWidth, nHeight INCHES
ENDPAGE
ENDPRINT
RELEASE FONT oFont
RELEASE PEN oPen
RELEASE BRUSH oBrush
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 57 guests