help using gflax

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

Moderators: helmut, XnTriq, xnview

ruthless
Posts: 11
Joined: Wed Jan 05, 2005 7:06 pm

help using gflax

Post by ruthless »

Where are all the command available for manipulating an image in ASP using GFLAX.

I checked Help.chm

It's really hard to follow it. I would really appriciate any help

I am trying to resize a image and then center align it if the input image is small and the final canvas is bigger.

Also how do you sharpen the image?

set PGFLAx = server.createobject("GflAx.GflAx")
PGFLAx.EnableLZW = True
PGFLAx.LoadBitmap Server.MapPath("/wwwroot/gflax/Examples/ASP/test/junk.jpg")
response.write "width = " & PGFLAx.Width
response.write "<br />height = " & PGFLAx.Height
PGFLAx.Sharpen 'this gives an error
PGFLAx.SaveFormat = AX_JPEG
PGFLAx.SaveJPEGQuality = 100
PGFLAx.SaveBitmap Server.MapPath("/wwwroot/gflax/Examples/ASP/test/junkout.jpg")
User avatar
xnview
Author of XnView
Posts: 45870
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: help using gflax

Post by xnview »

ruthless wrote:Where are all the command available for manipulating an image in ASP using GFLAX.

I checked Help.chm

It's really hard to follow it. I would really appriciate any help

I am trying to resize a image and then center align it if the input image is small and the final canvas is bigger.

Also how do you sharpen the image?

set PGFLAx = server.createobject("GflAx.GflAx")
PGFLAx.EnableLZW = True
PGFLAx.LoadBitmap Server.MapPath("/wwwroot/gflax/Examples/ASP/test/junk.jpg")
response.write "width = " & PGFLAx.Width
response.write "<br />height = " & PGFLAx.Height
PGFLAx.Sharpen 'this gives an error
PGFLAx.SaveFormat = AX_JPEG
PGFLAx.SaveJPEGQuality = 100
PGFLAx.SaveBitmap Server.MapPath("/wwwroot/gflax/Examples/ASP/test/junkout.jpg")
Could you send me your picture?
Pierre.
ruthless
Posts: 11
Joined: Wed Jan 05, 2005 7:06 pm

Re: help using gflax

Post by ruthless »

xnview wrote:
ruthless wrote:Where are all the command available for manipulating an image in ASP using GFLAX.

I checked Help.chm

It's really hard to follow it. I would really appriciate any help

I am trying to resize a image and then center align it if the input image is small and the final canvas is bigger.

Also how do you sharpen the image?

set PGFLAx = server.createobject("GflAx.GflAx")
PGFLAx.EnableLZW = True
PGFLAx.LoadBitmap Server.MapPath("/wwwroot/gflax/Examples/ASP/test/junk.jpg")
response.write "width = " & PGFLAx.Width
response.write "<br />height = " & PGFLAx.Height
PGFLAx.Sharpen 'this gives an error
PGFLAx.SaveFormat = AX_JPEG
PGFLAx.SaveJPEGQuality = 100
PGFLAx.SaveBitmap Server.MapPath("/wwwroot/gflax/Examples/ASP/test/junkout.jpg")
Could you send me your picture?
Here is the picture Image
The error I get while using .Sharpen is
Microsoft VBScript runtime error '800a01c2'

Wrong number of arguments or invalid property assignment: 'Sharpen'

Can you kindly let me know where I can find all the available ASP commands like "SaveJPEGQuality", SaveFormat

I wanted to have a image center aligned. I tried ".ResizeCanvas defaultSize, defaultSize, GFL_CANVASRESIZE_CENTER, RGB(0,0,0)" on an image and it did not resize it to the center, instead it was left aligned.
User avatar
xnview
Author of XnView
Posts: 45870
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: help using gflax

Post by xnview »

ruthless wrote:
xnview wrote:
ruthless wrote:Where are all the command available for manipulating an image in ASP using GFLAX.

I checked Help.chm

It's really hard to follow it. I would really appriciate any help

I am trying to resize a image and then center align it if the input image is small and the final canvas is bigger.

Also how do you sharpen the image?

set PGFLAx = server.createobject("GflAx.GflAx")
PGFLAx.EnableLZW = True
PGFLAx.LoadBitmap Server.MapPath("/wwwroot/gflax/Examples/ASP/test/junk.jpg")
response.write "width = " & PGFLAx.Width
response.write "<br />height = " & PGFLAx.Height
PGFLAx.Sharpen 'this gives an error
PGFLAx.SaveFormat = AX_JPEG
PGFLAx.SaveJPEGQuality = 100
PGFLAx.SaveBitmap Server.MapPath("/wwwroot/gflax/Examples/ASP/test/junkout.jpg")
Could you send me your picture?
Here is the picture
The error I get while using .Sharpen is
Microsoft VBScript runtime error '800a01c2'

Wrong number of arguments or invalid property assignment: 'Sharpen'

Can you kindly let me know where I can find all the available ASP commands like "SaveJPEGQuality", SaveFormat

I wanted to have a image center aligned. I tried ".ResizeCanvas defaultSize, defaultSize, GFL_CANVASRESIZE_CENTER, RGB(0,0,0)" on an image and it did not resize it to the center, instead it was left aligned.
All methods are in GflAX-Help.chm, could you send me a private mail, so i send you the current beta.
Pierre.
ruthless
Posts: 11
Joined: Wed Jan 05, 2005 7:06 pm

Post by ruthless »

e-mailed :)
ruthless
Posts: 11
Joined: Wed Jan 05, 2005 7:06 pm

Post by ruthless »

The email bounced... over quota. I pm'ed you.

Also please ignore ".ResizeCanvas defaultSize, defaultSize, GFL_CANVASRESIZE_CENTER, RGB(0,0,0)" and also ".Sharpen"
User avatar
xnview
Author of XnView
Posts: 45870
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post by xnview »

ruthless wrote:e-mailed :)
You use the PM from forum??
Pierre.
ruthless
Posts: 11
Joined: Wed Jan 05, 2005 7:06 pm

Post by ruthless »

xnview wrote:
ruthless wrote:e-mailed :)
You use the PM from forum??
I had e-mailed you at pierre.g {at} wanadoo {dot} fr. That e-mailed bounced. I then just pm'ed you on this boards.