PB: PixelGrabber, offscreen Image, Windows 98, ie5

Hello,
I've got a problem with a bug that occurs under Windows 98, and ie5.
This is the code of a little applet that works fine under Windows NT, but not under Windows 98:
This applet draws 3 colors in a square, and use the grabPixel method for catching the pixels of the image and create another image with those pixels.(the image should be the same)
The problem is that the grabPixel method changes the colors of the pixels. It occurs only with an offscreen Image (that means an Image created with the createImage(w, h) method). there is no problem with a MemoryImageSource, for example.
I just notice that the ColorModel of an offscreen Image is not the same as the default ColorModel:
colorModel: java.awt.image.DirectColorModel = {...}
red_mask: int = 0xf800 (instead of 0x00ff0000 )
green_mask: int = 0x7e0 (instead of 0x0000ff00 )
blue_mask: int = 0x1f (instead of 0x000000ff)
alpha_mask: int = 0x0 (instead of 0xff000000)
red_offset: int = 0xb
green_offset: int = 0x5
blue_offset: int = 0x0
alpha_offset: int = 0x0
red_scale: int = 0x1f
green_scale: int = 0x3f
blue_scale: int = 0x1f
alpha_scale: int = 0x0
But i don't know how to solve the bug.
Here is the code :
import java.awt.*;
import java.awt.image.*;
import java.applet.*;
public class AppletFlush extends Applet implements Runnable{
Thread anim;
Image memimg;
boolean bool;
Image offImage;
Graphics offGraphics;
     public void init() {
     public void start() {
     anim = new Thread(this);
     anim.start();
bool = true;
offImage = this.createImage(100, 100);
offGraphics = offImage.getGraphics();
     public synchronized void stop() {
     anim = null;
     notify();
     public synchronized void run() {
     while (Thread.currentThread() == anim) {
int[] pixels = new int[100 * 100];
int color = 0;
//set the pixels of a squared image that contains 3 colors (this is my reference image)
if (bool)
bool = false;
for (int i=0; i<100; i++)
if (i<33)
color = 0xffff0000;
else if (i<66)
color = 0xff00ff00;
else
color = 0xff0000ff;
for (int j=0; j<100; j++)
pixels[i*100 + j] = color;
else
//grab the pixels of the offscreen image(here is the problem)
PixelGrabber pg = new PixelGrabber(offImage, 0, 0, 100, 100, pixels, 0, 100);
try
pg.grabPixels();
catch (InterruptedException ex)
System.out.println("erreur pendant gragPixels !!!");
//create the new image with the pixels
MemoryImageSource imgsrc = new MemoryImageSource(100, 100, pixels, 0, 100);
memimg = createImage(imgsrc);
//draw the image in the offscreen image
offGraphics.drawImage(memimg, 0, 0, null);
          repaint();
          try {wait(1000);} catch (InterruptedException e) {return;}
     public void paint(Graphics g) {
     // display the offscreen image
     g.drawImage(offImage, 0, 0, this);
PLEASE HELP !
YaYa

try
public void paint(Graphics g )
if((_offScreen != null)&&(offScreenImage != null))
// put your stuff here
else
update(g);
g.dispose();
g.finalize();
return;
public void update(Graphics g)
if( offScreenImage == null)
offScreenImage = this.createImage( width, height );
if( _offScreen == null)
_offScreen = offScreenImage .getGraphics();
paint(g);
}

Similar Messages

  • How to draw a JPanel in an offscreen image

    I am still working on painting a JPanel on an offline image
    I found the following rules :
    - JPanel.setBounds shall be called
    - the JPanel does not redraw an offline image, on should explicitly override paint()
    to paint the children components
    - the Children components do not pain, except if setBounds is called for each of them
    Still with these rules I do not master component placement on the screen. Something important is missing. Does somebody know what is the reason for using setBounds ?
    sample code :
    private static final int width=512;
    private static final int height=512;
    offScreenJPanel p;
    FlowLayout l=new FlowLayout();
    JButton b=new JButton("Click");
    JLabel t=new JLabel("Hello");
    p=new offScreenJPanel();
    p.setLayout(l);
    p.setPreferredSize(new Dimension(width,height));
    p.setMinimumSize(new Dimension(width,height));
    p.setMaximumSize(new Dimension(width,height));
    p.setBounds(0,0,width,height);
    b.setPreferredSize(new Dimension(40,20));
    t.setPreferredSize(new Dimension(60,20));
    p.add(t);
    p.add(b);
    image = new java.awt.image.BufferedImage(width, height,
    java.awt.image.BufferedImage.
    TYPE_INT_RGB);
    Graphics2D g= image.createGraphics();
    // later on
    p.paint(g);
    paint method of offScreenPanel :
    public class offScreenJPanel extends JPanel {
    public void paint(Graphics g) {
    super.paint(g);
    Component[] components = getComponents();
    for (int i = 0; i < components.length; i++) {
    JComponent comp=(JComponent) components;
    comp.setBounds(0,0,512,512);
    components[i].paint(g);

    Unfortunately using pack doesn't work, or I didn't use it the right way.
    I made a test case, eliminated anything not related to the problem (Java3D, applet ...). In the
    test case if you go to the line marked "// CHANGE HERE" and uncomment the jf.show(), you have
    an image generated in c:\tmp under the name image1.png with the window contents okay.
    If you replace show by pack you get a black image. It seems there still something.
    simplified sample code :[b]
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import com.sun.j3d.utils.applet.*;
    import com.sun.j3d.utils.image.*;
    import com.sun.j3d.utils.universe.*;
    import java.io.*;
    import java.awt.image.*;
    import javax.imageio.*;
    public class test {
    private static final int width=512;
    private static final int height=512;
    public test() {
    JPanel p;
    BorderLayout lay=new BorderLayout();
    java.awt.image.BufferedImage image;
    // add a JPanel with a label and a button
    p=new JPanel(lay);
    p.setPreferredSize(new Dimension(width,height));
    JLabel t=new JLabel("Hello");
    t.setPreferredSize(new Dimension(60,20));
    p.add(t,BorderLayout.NORTH);
    p.setDebugGraphicsOptions(DebugGraphics.LOG_OPTION );
    // show the panel for debug
    JFrame jf=new JFrame();
    jf.setSize(new Dimension(width,height));
    jf.getContentPane().add(p);
    [b]
    // CHANGE HERE->
    jf.pack();
    //jf.show();
    // create an off screen image
    image = new java.awt.image.BufferedImage(width, height,
    java.awt.image.BufferedImage.TYPE_INT_RGB);
    // paint JPanel on off screen image
    Graphics2D g= image.createGraphics();
    g.setClip(jf.getBounds());
    System.err.println("BEFORE PAINT");
    jf.paint(g);
    System.err.println("AFTER PAINT");
    // write the offscreen image on disk for debug purposes
    File outputFile = new File("c:\\tmp\\image1.png");
    try {
    ImageIO.write(image, "PNG", outputFile);
    } catch (Exception e) {
    System.err.println(e.getMessage());
    g.dispose();
    jf.dispose();
    public static void main(String[] args) {
    test t=new test();
    }

  • Photoshop CS2 redraw garbage when moving around an image window on my G4 laptop

    Hi.I recently had to reinstall Photoshop CS2 onto my Mac Laptop 1.5 GHz PowerPC G4, running system 10.4.11, which required a new hard drive after the old one died. I am immediatly encountering a serious redraw/image repositioning problem in Photoshop that I have never seen before, and in Imageready as well. This does not happen in Macromedia Fireworks 8 however.
    I am zoomed into an image. Using the hand tool, or the scroll bars or the arrows, as soon as I move an image little messed up line graphic glitches appear and stay in place for the remainder or working with an image, and ultimately covers the image completely after moving around within it a number of times. you can see examples of this in these screenshots I've uploaded:
    http://pixeljam.com/temp/photoshopRedrawGarbage/moveGarbage04.gif
    http://pixeljam.com/temp/photoshopRedrawGarbage/moveGarbage03.gif
    http://pixeljam.com/temp/photoshopRedrawGarbage/moveGarbage02.gif
    and the lines stay the same size and position even when zooming in. here's the same image w/ the same defects zoomed out and in:
    http://pixeljam.com/temp/photoshopRedrawGarbage/moveGarbage01.gif
    http://pixeljam.com/temp/photoshopRedrawGarbage/moveGarbage01_zoomed.gif
    I've tried trashing & re-installing photoshop completely, tried running it before the updates needed from the original Photoshop application disk, and after. still the same problem.
    This occurs only when using the laptop on its own. When I hook it up to my Apple Studio Cinema Display, it works fine. The problem does not occur on the Cinema Display OR the laptop screen! it's very odd. Basically, the laptop is now something I cannot actually use away from my desk until this is resolved.
    Has anyone ever encountered this or possibly have any suggestions or advice? Thanks so much!
    -Rich
    And here are some more specs on my computer & hardware:
    Hardware Overview:
    Machine Name: PowerBook G4 12"
    Machine Model: PowerBook6,8
    CPU Type: PowerPC G4 (1.5)
    Number Of CPUs: 1
    CPU Speed: 1.5 GHz
    L2 Cache (per CPU): 512 KB
    Memory: 1.25 GB
    Bus Speed: 167 MHz
    Boot ROM Version: 4.9.0f0
    Serial Number: 4H5456AZRJ7
    Sudden Motion Sensor:
    State: Enabled
    Version: 1.0
    GeForce FX Go5200:
    Chipset Model: GeForce FX Go5200
    Type: Display
    Bus: AGP
    VRAM (Total): 64 MB
    Vendor: nVIDIA (0x10de)
    Device ID: 0x0329
    Revision ID: 0x00b1
    ROM Revision: 2122
    Displays:
    Color LCD:
    Display Type: LCD
    Resolution: 1024 x 768
    Depth: 16-bit Color
    Built-In: Yes
    Core Image: Supported
    Mirror: Off
    Online: Yes
    Quartz Extreme: Supported
    Cinema Display:
    Display Type: LCD
    Resolution: 1680 x 1050
    Depth: 32-bit Color
    Core Image: Supported
    Main Display: Yes
    Mirror: Off
    Online: Yes
    Quartz Extreme: Supported
    DIMM0/BUILT-IN:
    Size: 256 MB
    Type: Built-in
    Speed: Built-in
    Status: OK
    ATA Bus:
    MATSHITADVD-R UJ-845E:
    Capacity: 1.72 GB
    Model: MATSHITADVD-R UJ-845E
    Revision: DMP2
    Serial Number:
    Removable Media: Yes
    Detachable Drive: No
    BSD Name: disk5
    Protocol: ATAPI
    Unit Number: 0
    Socket Type: Internal
    OS9 Drivers: No
    S.M.A.R.T. status: Not Supported

    Hi. Thanks for your responses. There is definitely some incorrectness in the info I provided about the computer. for the Hard Drive, it's odd.. I copied and pasted that from my system profiler.. In actuality the Hard Drive is 74.53 GB. Not sure how that error occurred.
    Also I looked again at the computer's memory. I forgot the second larger 1GB memory card when I was copying and pasting from the system profiler. Sorry about that. I was in a but of a rush to get the question out.
    DIMM0/BUILT-IN:
    Size: 256 MB
    Type: Built-in
    Speed: Built-in
    Status: OK
    DIMM1/J31:
    Size: 1 GB
    Type: DDR SDRAM
    Speed: PC2700U-25330
    Status: OK
    Another thing I noticed about the problem I'm facing is that it leaves defects from mouse trails as well in the image window. None of the defects are lasting nor will they print. I close the file and they go away, if I zoom, they stay the same size. I'd agree, it sounds like a video card problem, but the reason I posted here is that only in photoshop and imageready do these problems occur. My guess, if it's the video card is that they are just programs that require more of the system. why my video card would be crapping out now, I have no idea. but I guess that's how it goes.
    But why would it work fine when hooked up to the apple cinema display? even on the laptop screen itself the problem is not present. only when the laptop is on its own.
    The computer has served me very well for almost 3 years without this problem, so that's why it's something that is not a normal problem that should be expected from this computer. I am grateful to have it & can't afford a new one.. this one is still sitting on my credit card balance. Thankfully I am under the applecare protection plan and will bring it in to the local Mac shop on monday and demonstrate the issue to them.
    Thanks for your replies.

  • Painting in a thread without offscreen image

    I'm trying to develop a good map viewer with java. Now, painting a map can
    be a very long task, and the requirements for a good map viewer should be:
    * the user can see progress, that is, the map is painted incrementally on the
    screen, not offscreen, otherwise the user has to sit and wait looking at
    a gray pane for seconds (a complex map may take 20-30 seconds to paint)
    * the user can stop rendering, or, if the panel is resized, the rendering should
    immediatly restart.
    The second requirement could be achieved by painting in a separate thread
    onto a BufferedImage and then invoke paint back to copy the image onto
    screen, but this approach fails to meet the first requirement... is there any way
    to paint directly on the screen without blocking the swing event thread?
    Moreover, ins't the hardware acceleration lost by using an offscreen image?

    To achieve visibly incremental progress of painting on the panel, probably you can use a JTimer and set the delay to 1000ms. In this frequency you can paint the panel in an incremental fashion. This approach will help you to achieve the other requirement of stopping the progress in the middle. You can provide a button, so that if the user presses the button, then invoke stop() method of timer which eventually stops the progress of the panel. Also if you want, you can restart() the progress from the point where it got stopped previously, by invoking restart() method of timer.
    Obviously, you should have a method which does all your painting and so on. Here JTimer can be helpful only in stopping, restarting and delaying the progress. Finally, make sure that the painting method is handled by JTimer alone.
    Hope this helps.

  • Opening Image Window defaults

    When I open images in photoshop(windows, not tabs), why do the image windows open far left? Each time I edit I have to drag to center and enlarge. Is there any way to change defaults to have images open centered and full screen?

    I use the very same script. In Photoshop Preferences > Interface  I have "open in Tabbed mode" checked.  There tall images center against a dark background
    If I have my documents open as separate windows, as when I uncheck the Application Frame on my Photoshop Mac, then the image window opens to the left.
    So it's "Tabbed mode" and Window menu > Application Frame checked on.
    Of course that does not fix your dilemma if you must use Document Windows instead of Tabs. So I will link you to two scripting venues for a possible solution.
    Gene
    Photoshop Scripting
    ps-scripts.com • Index page

  • How to draw an arc in the image window?

    Now I try to draw an arc in the image window, but when I try to use IMAQ Overlay Arc.vi, it need Bounding Rectangle that made a problem because the arc I draw has a big size whose bounding rectangle was out of the image window. What should I do?

    Hello,
    Bounding rectangle parameters will allow you to enter larger values than your image size as well as negative numbers in order to position your arc properly.
    I hope this helps!
    Regards,
    Yusuf C.
    Applications Engineering
    National Instruments

  • CS 6 Image Windows Don't Stay Where I Put Them

    I installed CS 6 yesterday.  My system runs 64 bit Win 7.  In Preferences > Interface, as I did in CS 5, I unchecked both Open Documents as Tabs and Enable Floating Document Window.  However, unlike CS 5, in CS 6 images 'insist' on positioning themselves in the upper left corner of CS 6 and will cover both the options bar and the tool bar.  For example, this will happen after opening an image if I try to move it or if I enlarge the image window (CTRL-0).  If I open two images and try to move one so I can see both at the same time, the one I try to move will not stay where I put it but instead will reposition itself to the upper left, and cover the options bar and menu bar.
    As you might image, this makes working in CS 6 difficult and inconvenient.  I assume this is a bug, and wonder if there are any workarounds or other solutions.  To this point, I have not yet uninstalled and re-installed CS 6.  Any suggestions would be appreciated.
    Best regards,
    David

    Noel Carboni wrote:
    Can we assume you hate the Auto-Hide feature even worse? 
    Hi,
    The answer to your question is 'probably'.  I like things to stay put, ideally where I want them.  So far my feeling is that having the task bar on the bottom is the lesser of the two 'evils'.  But your note reminds me to give auto-hide another try.  Thanks.
    Best,
    David

  • Adjust Image window disappeared

    I have a Macbook - it looks like the Adjust Image Window for Keynote is to the left or right of the screen beyond view. How do I get it back?
    cp

    My inspector window was completely hidden with the additional monitor in full resolution, just like You describe it- funnily enough not even restarting the program/computer helped getting the window back in range
    I found the ultimate help: with a second monitor (I use a laptop, so one is always in the go):
    - switch the display settings to "synchronize" and "attach" the additional monitor on the edge the inspector is hiding at (detectable by a little stripe that disappears when You push the inspector button- it should appear again so You can move it to where it belongs... thanks Fatih!

  • Resizing Image Window in Photoshop using Javascript

    I write many scripts using the ScriptListener as my base for obtaining my scripts. One of the steps I need is to resize the Image window so I can properly place a logo on an image. When I resize the image using File>Automate>Fit Image. The Image Window shrinks down and I have to use Control 0 or Command 0 to resize the image window to be able to view a larger image on the screen to place the logo.
    This is the Image Window Size after File>Automate>Fit Image
    I need ot make the Image Window Larger using Control or Command 0
    ScriptListener does not record this step of Control or Command 0.
    Is there a script that anyone knows that does this?
    It would be a great time saver if there was.
    Thanks in advance for assisting me.
    WorkflowMaster

    Hi Workflowmaster,
    Can you check the below mentioned script for your solution...
    I think it can be works.......
    - yajiv
    Code :
    Fit_ON_Screen();
    function Fit_ON_Screen(){
            var idslct = charIDToTypeID( "slct" );
            var desc64 = new ActionDescriptor();
            var idnull = charIDToTypeID( "null" );
            var ref44 = new ActionReference();
            var idMn = charIDToTypeID( "Mn  " );
            var idMnIt = charIDToTypeID( "MnIt" );
            var idFtOn = charIDToTypeID( "FtOn" );
            ref44.putEnumerated( idMn, idMnIt, idFtOn );
            desc64.putReference( idnull, ref44 );
            executeAction( idslct, desc64, DialogModes.ALL );

  • Image Window Problem

    Please advise why my image windows fly to the left of the screen when I select 'float in window' or float all in windows in the work space tab.   If I drag the window back to where I want it, it flies back to the left of the screen.   I'm using Windows 7 Prof.  Thanks for help.  Paul

    Hi,
    Are you using photoshop cs6?
    Have you installed the latest photoshop cs6 updates by going to Help>Updates from within photoshop?

  • Cropping question: image window disappears

    Lately, when click after cropping an image in CS5 the image window disappears.
    Rashid Arshed

    You probably have some values entered in the width, height or resolution fields.
    With the crop tool selected, either click on the Clear button or right click on the Crop icon in the tool options bar and select Reset Tool.

  • Assistance with Imaging windows 7 via windows PE

    Hi All.
    I require help imaging windows 7 with windows PE.
    I have a correctly set up bootable UFD with all PE and imagex files on it.
    I have created and prepared the windows 7 installation for imaging and have sysprepped it.
    When trying to capture the image to the UFD, it will capture but lasts 3 seconds and produces an 8mb file.
    Why is it not capturing the whole image?  There are no errors displayed.
    I am using the command 
    F:\imagex /compress fast /check /capture c: f:\install.wim "Windows 7" "Windows 7 Image"

    Hi Jarad,
    We hope your issue has been resolved, if you've found solution by yourself. We would appreciate it if you could share with us and we will mark it as answer.
    Drive letter might be not same as Windows Explorer under Windows PE, please follow Tripredacus suggestion using disk part check again.
    Regards
    D. Wu
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Drawing a font on an offscreen image

    I'm trying to draw a font on my own offscreen image but I had to implement a few tweaks to get it to work and I would like to know how to do it properly. Here's my code:
      private int[] getPrintMetrics(Font fnt, String txt) {
        BufferedImage bi = new BufferedImage(1, 1, BufferedImage.TYPE_INT_RGB);
        Graphics2D bg = (Graphics2D)bi.getGraphics();
        FontRenderContext frc = bg.getFontRenderContext();
        TextLayout tl = new TextLayout(txt, fnt, frc);
        int ret[] = new int[2];
        ret[0] = (int)tl.getBounds().getWidth();
        ret[1] = (int)(tl.getBounds().getHeight() * 1.5);
    //    ret[0] = (int)tl.getPixelBounds(frc, 0, 0).getWidth();
    //    ret[1] = (int)(tl.getPixelBounds(frc, 0, 0).getHeight() * 1.5);
        //BUG! WHY IS HEIGHT TOO SMALL? I HAVE TO ADD 50%
        return ret;
      public void print(Font fnt, int x, int y, String txt, int clr) {
        int size[] = getPrintMetrics(fnt, txt);
        BufferedImage bi = new BufferedImage(size[0], size[1], BufferedImage.TYPE_INT_RGB);
        Graphics2D bg = (Graphics2D)bi.getGraphics();
        FontRenderContext frc = bg.getFontRenderContext();
        TextLayout tl = new TextLayout(txt, fnt, frc);
        //this method draws the outline only
        Shape shape = tl.getOutline(AffineTransform.getTranslateInstance(0, tl.getBounds().getHeight()));
        bg.setColor(new Color(clr));
        bg.draw(shape);
        bg.setColor(new Color(clr));
        bg.setFont(fnt);
        bg.drawString(txt, 0, -1 * tl.getBaselineOffsets()[tl.getBaseline()+2]);   //BUG! HOW DO I KNOW WHICH BASELINE TO USE?
        putPixels(bi.getRGB(0,0,size[0],size[1],null,0,size[0]), x, y, size[0], size[1], 0);
      }putPixels() is my own member that will draw to my own image buffer.
    1) Why must I multiply the height by 1.5 in the getPrintMetrics() ?
    2) How do I know which baseline to use (I just hacked it).
    Thanks.

    Why is the height so small?
    new BufferedImage(1, 1, BufferedImage.TYPE_INT_RGB);The graphics context for this BufferedImage is very small.
    For more size increase the width and height dimensions.
    Try this.
    import java.awt.*;
    import java.awt.font.*;
    import java.awt.image.BufferedImage;
    import javax.swing.*;
    public class GraphicsExercise {
        private JLabel getContent() {
            BufferedImage image = createImage();
            Graphics2D g2 = image.createGraphics();
            g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
                                RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
            g2.setPaint(Color.blue);
            Font font = new Font("dialog", Font.PLAIN, 36);
            g2.setFont(font);
            FontRenderContext frc = g2.getFontRenderContext();
            String s = "Hello World";
            LineMetrics metrics = font.getLineMetrics(s, frc);
            float height = metrics.getAscent() + metrics.getDescent();
            float width = (float)font.getStringBounds(s, frc).getWidth();
            float x = (image.getWidth() - width)/2f;
            float y = (image.getHeight() + height)/2 - metrics.getDescent();
            g2.drawString(s, x, y);
            g2.dispose();
            return new JLabel(new ImageIcon(image), JLabel.CENTER);
        private BufferedImage createImage() {
            int w = 240;
            int h = 165;
            int type = BufferedImage.TYPE_INT_RGB;
            BufferedImage image = new BufferedImage(w, h, type);
            Graphics2D g2 = image.createGraphics();
            g2.setBackground(UIManager.getColor("Panel.background"));
            g2.clearRect(0,0,w,h);
            g2.dispose();
            return image;
        public static void main(String[] args) {
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(new GraphicsExercise().getContent());
            f.pack();
            f.setLocation(200,200);
            f.setVisible(true);
    }

  • HP Deskjet 3050A J611 series - error message -Bad image windows\system 32\d3d 10 warp.dll

    I use the HP Deskjet 3050A J611 series printer with my laptop and a desktop PC.  It works fine with the laptop but when I installed the software onto the desktop the window error message Bad Image Windows\ System 32\d3d 10 warp.dll kept popping up every few minutesd.  By a process of ilimination I discovered that it was the Photo Creations that was causing the problems, when I removed it all was good and I was able to use the printer.  The only problems is that I now cannot print photos from my pc.  I have windows 7.
    Can anyone help please?

    Hi Chris.
    That error message comes from Direct3D, which is part of the DirectX software in Windows. It appears that part of the DirectX environment on your computer is corrupt. Microsoft provides a diagnostic tool that should help you sort this out. Please see http://windows.microsoft.com/en-us/windows-vista/run-directx-diagnostic-tool
    If that does not solve the issue, you may want to reinstall the device driver for your graphics adapter.
    When all's running smoothly, you can reinstall HP Photo Creations to print again. Our customer support team would be happy to help with the reinstallation. You can reach them at www.hp.com/global/us/en/consumer/digital_photography/free/software/support-form.html
    Hope this helps,
    RocketLife
    RocketLife, developer of HP Photo Creations
    » Visit the HP Photo Creations Facebook page — news, tips, and inspiration
    » See the HP Photo Creations video tours — cool tips in under 2 minutes
    » Contact Customer Support — get answers from the experts

  • Copy offscreen image to applet

    I drew points to an offscreen Image and tried to copy it to my applet, but the applet is just white.
    my code:
        public void paint (Graphics g)
            Image Drawing = Background;
            Drawing.getGraphics ().setColor (Paint);
            int Index = 0;
            while (Index < points.size ())
                Drawing.getGraphics ().drawLine ((int) Math.round (((Point) poins.get (Index)).getX ()), (int) Math.round (((Point) points.get (Index)).getY ()), (int) Math.round (((Point) points.get (Index)).getX ()), (int) Math.round (((Point) points.get (Index)).getY ()));
                Index = Index + 1;
            g.drawImage (Drawing, 0, 0, this);
        }what am I doing wrong?
    (oh yeah, and is there a better way to draw points, or do I really have to draw 1x1 pixel lines?)

    It is true that turning off graphics acceleration eliminates the problem, but you can't publish an applet that requires every user turn off hardware acceleration on their PC. The problem has to be either fixed in the awt (unlikely since 1.6.10 is at RC) or bypassed in the applet.
    So, if you are reading this because you have a production applet broken by the changes in Java 1.6.10, I am afraid you are going to have to make changes to your paint routine to avoid the applet using any drawImage coordinates that reference areas outside the clip region of the graphics context.

Maybe you are looking for

  • Return policy on ibook?

    hey guys! i love my 12inch ibook, but i think i need a powerbook for the area im interested in (final cut, ect). i just bought my book in august with extra ram (1gig total), and i know if i sell it on ebay that i will not get as much as i would like

  • Sales Contracts and Release Orders

    The Company (in which SAP is being implemented) signs: CONTRACT  A: for 10000 MT of rice variety R1 @ 900$/MT.  from 01/09/2005 to 31/08/2006 Conditions: The price quoted above is for 40 kg PP packing for Destination Port: New York Incase the weight

  • ADF-BC/JSF How to restrict the size of an ordImage

    Hi all I have a table containing two columns with type ordsys.OdImage. One is a small resolution icon and the other the image itself. Using Steve Muench s example mo 69, I was able to create a ADF-BC/JSF application that loads images to the database.

  • How to i get back microsoft Windows xp after trashing it on my mac

    Help! How do I get back Microsoft Windows XP after trashing it on my Mac?

  • Flash won't display

    when i click on my flash i get a red x it was working till i cleaned out my tempory internet pages and i also cleaned out the cookies thing i have to use msn explore to get on the internet anyone have any ideas on how to fix this?