Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > Java GUI
|
Java GUI Discussions specific to programming Java GUI.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java GUI section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 6th, 2004, 03:46 PM
Registered User
 
Join Date: Jul 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Saving Shape objects as Bitmap or Jpeg

Using Hortons Sketcher code I would like to implement a save as bitmap or jpeg function and befor I spend several hours on this I am looking for some pointers.

Thanks

 
Old November 23rd, 2004, 06:11 AM
Authorized User
 
Join Date: Oct 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mrafaqi Send a message via Yahoo to mrafaqi
Default

Hello!

   i never implemented it, but i can help you in the context that it is called the process of serielization in java, which is writing an object to the file. you may refer to books for details. in Ivor Horton's Beginning Java 2, i have seen an example of drawing application in which, author has used serielization perhaps.

 
Old November 30th, 2004, 06:03 PM
Authorized User
 
Join Date: Nov 2003
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sonicDace Send a message via MSN to sonicDace Send a message via Yahoo to sonicDace
Default

Joe,

Look into the java ImageIO api.... you can obtain a writer object for jpeg, png, gif, etc.

After obtaining the writer, you can use it to write your generated image to a file.

thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
Rotating shape in VBA (not center of shape) Piblon Excel VBA 3 April 13th, 2006 04:04 AM
EXCEL question saving a file saving the the first macupryk VS.NET 2002/2003 0 January 6th, 2005 05:33 PM
jpeg format nasiim96 C++ Programming 2 October 18th, 2004 08:23 AM
Saving Shape objects as Bitmap or Jpeg JoePates BOOK: Beginning Java 2 6 August 8th, 2004 10:15 AM
"No Fill" for Shape Objects msvedlow Excel VBA 2 September 5th, 2003 10:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.