Resize Images and merge with big image (PIP)

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, xnview

sk23456
Posts: 2
Joined: Fri Apr 27, 2007 2:28 pm

Resize Images and merge with big image (PIP)

Post by sk23456 »

Is it possible:

e.g. 3 Images
Resize image 1
resize image 2
place both images in image 3

I know how to drawimage and merge image but i don´t now
how to resize and then draw without saving the resized image first

Thank you

Stephan
User avatar
xnview
Author of XnView
Posts: 36866
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Resize Images and merge with big image (PIP)

Post by xnview »

sk23456 wrote:Is it possible:

e.g. 3 Images
Resize image 1
resize image 2
place both images in image 3

I know how to drawimage and merge image but i don´t now
how to resize and then draw without saving the resized image first
No, you must save it, or perhaps use another GFLAx object
Pierre.
sk23456
Posts: 2
Joined: Fri Apr 27, 2007 2:28 pm

Post by sk23456 »

how does it work? how can i integrate the resized file into the mergeaddfile?

Example (not working)

file = result.jpg
Set ctrl = createobject("GflAx.GflAx")
Set ctrl2 = createobject("GflAx.GflAx")

ctrl.LoadBitmap FiletoResize
ctrl.Resize 420, 320

ctrl2.LoadBitmap basefile

ctrl2.MergeAddFile ctrl, 40, 0, 0
ctrl2.Merge

ctrl2.SaveformatName = "jpeg"
ctrl2.SaveBitmap(file)
User avatar
xnview
Author of XnView
Posts: 36866
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post by xnview »

sk23456 wrote:how does it work? how can i integrate the resized file into the mergeaddfile?

Example (not working)

file = result.jpg
Set ctrl = createobject("GflAx.GflAx")
Set ctrl2 = createobject("GflAx.GflAx")

ctrl.LoadBitmap FiletoResize
ctrl.Resize 420, 320

ctrl2.LoadBitmap basefile

ctrl2.MergeAddFile ctrl, 40, 0, 0
ctrl2.Merge

ctrl2.SaveformatName = "jpeg"
ctrl2.SaveBitmap(file)
Right, i must add such method, currently it's not possible
Pierre.