Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
bufferedimage
- Page 1
Re: Displaying part of a larger image
Programming
Software Development
12 Years Ago
by NormR1
BufferedImage
class for methods that would allow you to get sub-images.
Re: BufferedImage
Programming
Web Development
13 Years Ago
by swati.n
…= createDataset(startDate,endDate); JFreeChart chart = createChart(dataset);
BufferedImage
bi = chart.createBufferedImage(900, 320); setBuffImage(bi);… .... public void setBuffImage(
BufferedImage
buffImage) { this.buffImage = buffImage; } public
BufferedImage
getBuffImage() { return buffImage; }[/code…
Re: BufferedImage
Programming
Web Development
13 Years Ago
by ~s.o.s~
…getParamter("type"); // read other data like graph parameters
BufferedImage
img = generateImage(graphType); response.setContentType("img/png"); OutputStream… os = response.getOutputStream(); // write data from
BufferedImage
to the servlet output stream } }[/code] In you deployment descriptor…
BufferedImage
Programming
Web Development
13 Years Ago
by swati.n
Hi I have to display 4
BufferedImage
in jsp page.I am getting these images from a …
BufferedImage vs ToolkitImage
Programming
Software Development
14 Years Ago
by sciwizeh
….createImage() to ImageIO.read() and making all the Image references
BufferedImage
references. Those where the only changes I made to the… of a game would. Does anyone have any idea why
BufferedImage
would be slower to render with Graphics.drawImage() than other…
BufferedImage display
Programming
Software Development
12 Years Ago
by cmsc
I'm trying to use
bufferedImage
to display the bac[ICODE][/ICODE]kground of my application … here's the part of the code: [ICODE] Graphics g;
BufferedImage
offscreen; offscreen= ImageIO.read(new File("mainScreen.png"…
Small BufferedImage = java.lang.OutOfMemoryError: Java heap space ???
Programming
Software Development
12 Years Ago
by riahc3
…System.out.println("Hello");
BufferedImage
bufferedImage
= new
BufferedImage
(620, 420,
BufferedImage
.TYPE_INT_RGB); System.out.println("Bye…"); Graphics2D g2d =
bufferedImage
.createGraphics(); g2d.setColor(Color.black); g2d.… bye. I dont understand as my
BufferedImage
is nothing at all (simple 620 by…
Wrap double data to BufferedImage?
Programming
Software Development
13 Years Ago
by sportinguista
… like to wrap it into a new
BufferedImage
ComponentColorModel colorModel = new ComponentColorModel( ColorSpace.getInstance…true, false, ComponentColorModel.TRANSLUCENT, DataBuffer.TYPE_DOUBLE );
BufferedImage
bufImg = new
BufferedImage
(colorModel, wr, false, null); [/code] …
Re: Setting rgb BufferedImage
Programming
Software Development
11 Years Ago
by Viped
… class ImageManipulation { public ImageManipulation() { } public
BufferedImage
setTransparent(
BufferedImage
image) { image = new
BufferedImage
(image.getWidth(), image.getHeight(),
BufferedImage
.TYPE_INT_ARGB); for (int x = 0; x <…
Re: Setting rgb BufferedImage
Programming
Software Development
11 Years Ago
by Viped
… class ImageManipulation { public ImageManipulation() { } public
BufferedImage
setTransparent(
BufferedImage
image) { image = new
BufferedImage
(image.getWidth(), image.getHeight(),
BufferedImage
.TYPE_INT_ARGB); for (int x = 0; x <…
Re: Wrap double data to BufferedImage?
Programming
Software Development
13 Years Ago
by sportinguista
…, created a new ColorModel and a new
BufferedImage
bi. [code=java] ComponentColorModel colorModel = …(), DataBuffer.TYPE_DOUBLE); bi = new
BufferedImage
(colorModel, raster, false, // isRasterPremultiplied…
problems with bufferedImage
Programming
Software Development
19 Years Ago
by server_crash
….awt.geom.*; public class ImagePlotter extends JPanel {
BufferedImage
cartisianImage; Graphics2D g2d; public ImagePlotter() { setPreferredSize(… int width = 300; int height = 300; cartisianImage = (
BufferedImage
)(this.createImage(width,height)); Graphics2D gc = cartisianImage.createGraphics(); gc.setColor…
Creating a BufferedImage properly
Programming
Software Development
15 Years Ago
by redZERO
Hi I am having problems with
BufferedImage
. What i would like to do is create a
bufferedimage
from an image stored on the hard disk. For example, i create a new file pointing to this image file. From this I would like to create a
BufferedImage
.
Copy of BufferedImage or Graphics>
Programming
Software Development
14 Years Ago
by solahere
…do... I have a image and I create a
bufferedImage
and graphics out of that using: [CODE=java…]
BufferedImage
img = ImageIO.read(file); Graphics2D g = img.createGraphics(); [/CODE]…, image3) .here I am confused if I copy the
BufferedImage
or the graphics? To copy the graphics I did, […
compress bufferedimage
Programming
Software Development
14 Years Ago
by musthafa.aj
… what i need is compress that [COLOR="Red"]
Bufferedimage
[/COLOR] before getting it as [COLOR="Green"]Raster… cast BufferdByte as BufferedInt"... [CODE] [COLOR="Red"]
Bufferedimage
[/COLOR]image=robot.createScreenCapture(new Rectangle(width, height)); ////here i…
Setting rgb BufferedImage
Programming
Software Development
11 Years Ago
by Viped
…? package net.viped; import java.awt.image.
BufferedImage
; public class ImageManipulation { public ImageManipulation() { } public
BufferedImage
setTransparent(
BufferedImage
image) { for (int x = 0; x…
Sending a BufferedImage over a socket?
Programming
Software Development
11 Years Ago
by M4trixSh4d0w
… screenRect = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize());
BufferedImage
capture = new Robot().createScreenCapture(screenRect); client.…} Client Code: public void screenshot() { try {
BufferedImage
image = ImageIO.read(socket.getInputStream()); if(image != …
Adding Multiple BufferedImages to one BufferedImage (Optimization)
Programming
Software Development
8 Years Ago
by Doogledude123
… if it would be more efficient to render a single
BufferedImage
instead of rendering a bunch of BufferedImages in a double… do it, I just don't know what methods in
BufferedImage
you would use to create the bigger image. I'm… the Maps Tile Data and `getImage()` returns that Tile's
BufferedImage
. PS: I am using a TileSheet.
Re: pixel data array to BufferedImage
Programming
Software Development
14 Years Ago
by Clawsy
… and pixel2 - similay speed with pixel grabber Raster ras = ((
BufferedImage
) img).getData(); DataBufferInt db = (DataBufferInt) ras.getDataBuffer(); pixels2…(img, os_img); [/CODE] [...] [CODE]public void sendImageToStream(
BufferedImage
img, DataOutputStream dos) throws IOException{ //i send the image…
Re: Adding Multiple BufferedImages to one BufferedImage (Optimization)
Programming
Software Development
8 Years Ago
by JamesCherrill
… advantage in pre-rendering it. If so, just create a `
BufferedImage
`, and call its `createGraphics()` to get a `Graphics2D` that allows… use your existing drawing code to draw directly to the
BufferedImage
. .. but we've spoken before about premature optimisation... ;) J
Painting multiple layers to a BufferedImage
Programming
Software Development
14 Years Ago
by redZERO
Hi guys, I want to paint multiple layers of images onto one image. I'm going to be using
BufferedImage
for this. How would I go about painting these multiple images onto one (in essence creating a new image. sort of like a collage)? Would i get the graphics context and then paint to the
BufferedImage
?
Re: Copy of BufferedImage or Graphics>
Programming
Software Development
14 Years Ago
by solahere
I know I can create Image2 and then create a new
BufferedImage
and Graphics using the file that I saved the Image1 as ... But I want to understand if there is any means of copying stuff!
Re: Copy of BufferedImage or Graphics>
Programming
Software Development
14 Years Ago
by JamesCherrill
You could try the clone() method that all Java objects have.
BufferedImage
img2 = img.clone(); This isn't always implemented for all classes, but if that's the case you'll get a CloneNotSupportedException thrown immediately, so at least you'll know!
pixel data array to BufferedImage
Programming
Software Development
14 Years Ago
by Clawsy
… some computation with it and now I need make a
BufferedImage
from it. The problem is I can't make it… as PNG compressed... so that's why I need a
BufferedImage
. I need very fast conversion/image construction... Thanks.
Re: pixel data array to BufferedImage
Programming
Software Development
14 Years Ago
by Clawsy
… DataBufferInt but it's also slow. [CODE] finalimg = new
BufferedImage
(w, h,
BufferedImage
.TYPE_INT_RGB); Image piximg = Toolkit.getDefaultToolkit().createImage(new MemoryImageSource(w…
Re: pixel data array to BufferedImage
Programming
Software Development
14 Years Ago
by JamesCherrill
… is defined as returning Image (abstract) but actually returns a
BufferedImage
, so you can just cast it. However, rather than extracting…: [CODE]image = robot.createScreenCapture(new Rectangle(width, height)); Raster ras = ((
BufferedImage
) image).getData(); DataBufferInt db = (DataBufferInt) ras.getDataBuffer(); int[] data = db…
Re: pixel data array to BufferedImage
Programming
Software Development
14 Years Ago
by Clawsy
… the image because I used this: [CODE] finalimg = new
BufferedImage
(w, h,
BufferedImage
.TYPE_INT_RGB); Image piximg = Toolkit.getDefaultToolkit().createImage(new MemoryImageSource(w…
Re: pixel data array to BufferedImage
Programming
Software Development
14 Years Ago
by Clawsy
…'t have used: [CODE] Raster ras = ((
BufferedImage
) img).getData(); [/CODE] I used: [CODE] WritableRaster wras = ((
BufferedImage
) img).getRaster(); [/CODE] and it worked…
Printing BufferedImage ?!?
Programming
Software Development
12 Years Ago
by uurcnyldrm
How can I print a
BufferedImage
? I mean how can I send a
BufferedImage
to the printer? I heard something like printJob but I don't get it. Please help me about this. Thanks in advance.
Re: pixel data array to BufferedImage
Programming
Software Development
14 Years Ago
by Clawsy
Yes but I need a [B]
BufferedImage
[/B] to do that, not [B]Image[/B]. I can't send Image object over a dataoutputstream... or I don't know how :|
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC