Hello everybody,
I am trying to create a file in Windows 2000, which contains an image. Internally in the VW image I have created an image fromUser or a pixmap and then try to create that as the file. Does VW7 provides for that? Does some one have an example. Thank you Ian |
Hello Ian,
load the JPEG bundle from the Cincom Public Repository, and use the JPEG.Writer to export the image to a file, e.g. like this: (JPEG.Writer yCbCr) write: image to: 'image.jpg'. (JPEG.Writer grayscale) write: image to: 'imageGray.jpg'. For other possibilities, see this thread: http://www.parcplace.net/list/vwnc-archive/0607/msg00153.html HTH, Joachim Geidel [hidden email] wrote: > I am trying to create a file in Windows 2000, which contains an image. > Internally in the VW image I have created an image fromUser or a pixmap > and then try to create that as the file. Does VW7 provides for that? Does > some one have an example. |
Thank you all for your timely response. I was able to save an image as a
file. However I did encountered several problems. When I accessed Cincom Public Repository, I did not find JPEG bundle, I did review the contents. I guess I had to register, before I can download any bundles, since I did not see JPEG I did not register. Then I folloerd another one of your suggestions and downloaded Jun bundle and that had a wealth of source code, there I found couple classes, which save images as files in correct format. However when Jun installs itself it is not setting up all correct .ddl directories and then it comes up with the message "not able to Load library...". Other then that everything is fine. Joachim Geidel > Hello Ian, > > load the JPEG bundle from the Cincom Public Repository, and use the > JPEG.Writer to export the image to a file, e.g. like this: > > (JPEG.Writer yCbCr) write: image to: 'image.jpg'. > (JPEG.Writer grayscale) write: image to: 'imageGray.jpg'. > > For other possibilities, see this thread: > http://www.parcplace.net/list/vwnc-archive/0607/msg00153.html > > HTH, > Joachim Geidel > > [hidden email] wrote: > > I am trying to create a file in Windows 2000, which contains an image. >> Internally in the VW image I have created an image fromUser or a pixmap >> and then try to create that as the file. Does VW7 provides for that? >> Does >> some one have an example. > > |
In reply to this post by ian2-2
>When I accessed Cincom Public Repository, I did not find JPEG bundle, I
>did review the contents. If you tried to find JPEG at http://www.cincomsmalltalk.com/publicRepository/ - I assume it is not listed there because it does not qualify as "interesting" according to the rules at the bottom of the page. Which means that the bundle probably does not have a comment. >I guess I had to register, before I can download >any bundles, since I did not see JPEG I did not register. Yes, you have to register as guest to download, see http://www.cincomsmalltalk.com/CincomSmalltalkWiki/PostgreSQL+Access+Page >Then I folloerd >another one of your suggestions and downloaded Jun bundle and that had a >wealth of source code, there I found couple classes, which save images as >files in correct format. However when Jun installs itself it is not >setting up all correct .ddl directories and then it comes up with the >message "not able to Load library...". Other then that everything is fine. That might depend on the version of Jun, the version of the operating system, whether you have Quicktime installed or not (Jun supports this, too), where the missing DLLs are on your computer etc. I'm no Jun expert, and without more information it's difficult to see what's wrong. Did you check the Jun documentation to see what is required to use it? Best regards, Joachim |
Free forum by Nabble | Edit this page |