shalni sundar

Greenhorn
+ Follow
since Jul 03, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by shalni sundar

I have wriiten some code ., that convert html code to Image "png" file.
I am not getting the full content in the image file what could be the problem.

I am stuck with this.

Code Snippets:
HTMLEditorKit htmlEditorKit = new HTMLEditorKit();
HTMLDocument htmlDocument = (HTMLDocument) htmlEditorKit
.createDefaultDocument();
JEditorPane editor = new JEditorPane();
editor.setEditable(false);
editor.setEditorKit(htmlEditorKit);
editor.setText(templateString);

// Write to file
Dimension prefSize = editor.getPreferredSize();
BufferedImage img = new BufferedImage(prefSize.width, editor
.getPreferredSize().height, BufferedImage.TYPE_INT_ARGB);
Graphics graphics = img.getGraphics();
editor.setSize(prefSize);
editor.paint(graphics);
ImageIO.write(img, "png", file);

15 years ago
I am not getting the full image while i am converting a html page to an image file.

I am randomly generating the code, But sometimes failed to receive the full picture.

Out of 10 i am getting 2 as good.

Please help me in ths regard.
15 years ago
Problem with image processing.,

i want to send some templates thru mail automatically., for that i am trying to do some changes like Text writing over an image and change font etc.,

So i am using awt.Image API. And I am sending the mail as HTML mail. I can able to send the static image.,
i can't do for that java Image.,

Thanks
15 years ago
Is it possible to combine three different images into one? And send the processed image through mail.

If any one know about the thing please help me.
15 years ago
Hi,

I am unable to send the attached image in email. I didn receive the image from my end.
I am combining two images and trying to send the combined image to mail.

I use awt packages for image processing.

Please help me out in htis regard.
15 years ago