How to arrange images to generate a new image?

How to arrange images to generate a new image?

Postby vilian » Thu Oct 08, 2020 12:02 pm

Hi Guys,
I have four images(img1.jpg,img2.jpg,img3.jpg,img4.jpg) that I wanted arrange in a new image(imgx.jpg). do you how could I do this?
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: How to arrange images to generate a new image?

Postby ukoenig » Fri Oct 09, 2020 1:22 pm

Vilian,

do You need a general solution like using
PIXELFORMER or do You need to create different
images many times from inside Your program :?:

best regards
Uwe
Last edited by ukoenig on Fri Oct 09, 2020 1:28 pm, edited 1 time in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: How to arrange images to generate a new image?

Postby vilian » Fri Oct 09, 2020 1:24 pm

I need to create different images many times inside my program.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: How to arrange images to generate a new image?

Postby nageswaragunupudi » Fri Oct 09, 2020 6:54 pm

Code: Select all  Expand view
function StitchImages()

   local cImage1  := "c:\fwh\bitmaps\olga1.jpg"  // 352x450
   local cImage2  := "c:\fwh\bitmaps\olga2.jpg"  // 352x450
   local cImage3  := "https://cf.bstatic.com/images/hotel/max1024x768/223/223087771.jpg" // 1024x683
   local hBmp

   hBmp  := FW_MakeYourBitmap( 704, 450+470, <|hDC|
               FW_DrawImage( hDC, cImage1, { 0,   0,  450, 352 } )
               FW_DrawImage( hDC, cImage2, { 0,  352, 450, 704 } )
               FW_DrawImage( hDC, cImage3, { 450, 0,  920, 704 } )
               return nil
               > )

   FW_SaveImage( hBmp, "new.jpg", 50 )
   Deleteobject( hBmp )

   XIMAGE( "new.jpg" )

return nil
 


Image
Regards

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

Re: How to arrange images to generate a new image?

Postby vilian » Fri Oct 09, 2020 8:04 pm

Thank You Mr Rao,
It's exactly I need :)
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 64 guests