FWH2309: New function FW_StitchImages()

FWH2309: New function FW_StitchImages()

Postby nageswaragunupudi » Fri Sep 08, 2023 12:20 am

Code: Select all  Expand view
newImage := FW_StitchImages( cImage1, [cImage2], [cSide], [cBlobType] )
 


cImage1 and cImage2 can be image file names of any type, or image blobs, or hBitmap / pImages or any combination thereof

If cImage2 is omitted, any image in ClipBoard is taken as the second image.

cSide "R"/"B" : Add the second image to the right/bottom of the first image. If this argument is omitted, the function will decide the best fit.

cBlobType: If this argument is omitted, hBitmap of the combined image. Or this parameter can be any image-type bmp/jpg/png. If specified, a blob of that type is returned which can be used to save to a field of database or to a file.

Example:
Code: Select all  Expand view
   cImage := FW_StitchImages( "c:\fwh\bitmaps\olga1.jpg" , "c:\fwh\bitmaps\pngs\2.png", ,"png" )
   ximage( cImage )


Image

Adding another image to this combined image:
Code: Select all  Expand view
   cImage := FW_StitchImages( cImage, "c:\fwh\bitmaps\sea.bmp", ,"png" )
   ximage( cImage )


Image

Now, this cImage can be saved to a file or to a memo field of any database.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10248
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Silvio.Falconi and 98 guests