diff options
author | scuri <scuri> | 2009-06-26 17:14:56 +0000 |
---|---|---|
committer | scuri <scuri> | 2009-06-26 17:14:56 +0000 |
commit | 193cd3427108bd127e09f391f7fe51f6b62590e9 (patch) | |
tree | 7dfd83dec634c15f87f578266f6fdb0df046613a /html/examples/error.lua | |
parent | 734afa90c3dda1232e9490d08346be4f2ffefec1 (diff) |
*** empty log message ***
Diffstat (limited to 'html/examples/error.lua')
-rw-r--r-- | html/examples/error.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/html/examples/error.lua b/html/examples/error.lua new file mode 100644 index 0000000..f8c71a8 --- /dev/null +++ b/html/examples/error.lua @@ -0,0 +1,10 @@ +require"imlua" + +local filename = "lena.jpg" +local image = im.FileImageLoad(filename) +local image2 = im.ImageCreate(image:Width(), image:Height(), im.GRAY, im.USHORT) + +-- Both calls will signal an error because of incompatible parameters + +--im.ConvertDataType(image, image2, im.CPX_REAL, im.GAMMA_LINEAR, 0, im.CAST_MINMAX) +im.ConvertColorSpace(image, image2, im.CPX_REAL, im.GAMMA_LINEAR, 0, im.CAST_MINMAX) |