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")
help using gflax
Moderators: helmut, XnTriq, xnview
-
- Author of XnView
- Posts: 45870
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: help using gflax
Could you send me your picture?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")
Pierre.
-
- Posts: 11
- Joined: Wed Jan 05, 2005 7:06 pm
Re: help using gflax
Here is the picturexnview wrote:Could you send me your picture?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")

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.
-
- Author of XnView
- Posts: 45870
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: help using gflax
All methods are in GflAX-Help.chm, could you send me a private mail, so i send you the current beta.ruthless wrote:Here is the picturexnview wrote:Could you send me your picture?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")
The error I get while using .Sharpen isMicrosoft 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.
Pierre.
-
- Posts: 11
- Joined: Wed Jan 05, 2005 7:06 pm
-
- Author of XnView
- Posts: 45870
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
-
- Posts: 11
- Joined: Wed Jan 05, 2005 7:06 pm