Displaying 2 results from an estimated 2 matches for "creategraphics".
2005 Aug 12
8
Java Problems
...eManagerFactory.java:38)
at sun.awt.image.SurfaceManager.getManager(SurfaceManager.java:69)
at sun.awt.image.SurfaceManager.getManager(SurfaceManager.java:45)
at sun.java2d.SurfaceData.getDestSurfaceData(SurfaceData.java:113)
at
sun.java2d.SunGraphicsEnvironment.createGraphics(SunGraphicsEnvironment.java:337)
at
sun.java2d.HeadlessGraphicsEnvironment.createGraphics(HeadlessGraphicsEnvironment.java:77)
at
java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1143)
at FillTest.test(FillTest.java:20)
at FillTest.main(FillTest.j...
2008 Apr 15
4
trouble streaming images with send_data
...ow as a very small image (about .4 kb) when I am using jpeg
format. For png, it tells me that the image has errors and can''t load
it.
Here''s what I''m doing in the controller:
def sendImage
biFiltered = BI.new(100, 100, BI::TYPE_INT_RGB)
big = biFiltered.createGraphics()
$w = 0
$h = 0
begin
filename = "#{RAILS_ROOT}/public/images/kids.jpg"
imagefile = java.io.File.new(filename)
bi = javax.imageio.ImageIO.read(imagefile)
w = bi.getWidth(nil);
h = bi.getHeight(nil);
if bi.getT...