New to Graphics --- Help Appreciated

Hi all
I am trying to do a basic BufferedImage and createGraphics.
The code looks like this
public static BufferedImage getImage()
int height =10;
int width = 10;
BufferedImage bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB);
Graphics2D gi = bi.createGraphics();
g1.drawString("Hello World",5,5);
What is wrong with this code
I do have the save into JPEG file and all that stuff included in the program.
I call this from a java file and try to display on the browser but nothing is displayed.
Thanks in advance

>
Graphics2D gi = bi.createGraphics(); <<<<--------you call it gi here
g1.drawString("Hello World",5,5); <<<<--------you call it g1 here
}is this helpful..?

Similar Messages

  • I am getting the message "The windows installer Service could not be accessed when trying to install Itunes on my new computer, any help would be appreciated.

    I am getting the message "The windows installer Service could not be accessed when trying to install Itunes on my new computer, any help would be appreciated.

    Hey there Frank0619,
    If you have not been able to install iTunes because the Windows Installer service is not available, I would recommend the troubleshooting in the following troubleshooting to help.
    Issues installing iTunes for Windows
    These in particular: 
    Make sure you have an administrator account.
    To install iTunes, you'll need to log in to your computer with an administrator password. If you're not sure if you have an administrator account, read Windows 7: How do I log on as an administrator? You could also refer to your computer's help system, contact your IT department, or visit support.microsoft.com for assistance.
    Install the latest Microsoft Windows updates.
    To download the latest updates, visit the Microsoft Windows Update website. iTunes for Windows requires Windows XP, Windows Vista, Windows 7, or Windows 8 with the latest Service Pack installed. If you can’t install the updates, refer to your computer's help system, contact your IT department, or visit support.microsoft.com for assistance.
    Download the latest version of iTunes.
    The latest version of iTunes can be downloaded at http://www.apple.com/itunes/download/.
    Disable conflicting software.
    Some Windows background processes can cause issues for other programs and processes. These conflicts can prevent applications, such as iTunes, from installing. Disable conflicting processes by starting your computer using MSConfig: 
    Using Msconfig to troubleshoot conflicts in Windows XP
    Using Msconfig to troubleshoot conflicts in Windows Vista, Windows 7, and Windows 8
    Some security software made by other companies can't be disabled using MSConfig. If you've installed security software and you're having issues installing iTunes or QuickTime for Windows, you might need to disable or uninstall security software to resolve installation issues.
    Restart your computer.
    Install iTunes.
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • HT1320 I have a new IPod Touch 5G, 32 gb and suddenly it will not turn on, and will not restore using UTunes.  Any help appreciated.

    I have tried many times to restore my  new IPod Touch 5G in I Tunes and it will not allow me to do it.  My Ipod will not turn on at all even when on a fresh charge.  Only displays the arrow leading up to ITunes logo.  I have tried the method of holding the home button and on button and this does not work.  Any help appreciated.
    My I Pod was working fine until the day I updated the software to 6.0.1.

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar

  • Please help me with portfolio.I am new in graphic design.I need portfolio done immediately soon as possible otherwise my design advisor will not let me register for fall. I need 15 or 10 artworks to show.Please help me

    Please help me with portfolio.I am new in graphic design.I need portfolio done immediately soon as possible otherwise my design advisor will not let me register for fall. I need 15 or 10 artworks to show.Please help me.

    Farooq,
    If you look at the first one, you should be able to align quite easily as follows, View>Smart Guides being your friends:
    1a) ClickDrag the top flower with the Selection Tool (black arrow) so it is clear of the pointy part;
    1b) Click an empty spot on the Artboard to deselect, then ClickDrag the top flower by its bottom Anchor Point (Smart Guides say anchor when you are close enough to grab it) down to snap to the top Anchor Point on the pointy part (Smart Guides say anchor when you are close enough);
    1c) Do the same for the boroom flower.
    If you look at the third one, to get the triangles and the hexagon sized and aligned precisely, you may, creating them with stroke and no fill:
    3a) Click with the Polygon Tool and select a suitable/chosen Radius and 6 Sides, then Object>Transform>Rotate by 30 degrees (or use the Rotate option in the Transform palette), you may Object>Transform>Reset Bounding Box to have it look nicer;
    3b) Click with the Polygon Tool and select the same Radius and 3 sides, then deselect and ClickDrag the top Anchor Point to snap to the top Anchor Point of the hexagon;
    3c) Object>Transform>Rotate by 180 degrees clicking Copy, deselect, and ClickDrag the bottom Anchor Point to snap to the bottomAnchor Point of the hexagon;
    3d) Select all and Ctrl/Cmd+G to Group (for alignment purposes, you will know why if you try without grouping, see below).
    To create full symmetry, you may use circles rather than almost circular ellipses; you may:
    3d) Click with the Ellipse Tool and select a suitable/chosen Width = height;
    3e) Object>Transform>Move a copy vertically by the Height (= Width) twice (or you may Ctrl/Cmd+D to repeat), to get three circles over one another with no gaps;
    3f) Select the topmost and bottommost ones and Object>Transform>Rotate a copy by 120 degrees twice, to have all the seven circles precisley touching one another; you may Group them, but it is not necessary.
    To have everything aligned, just:
    3g) Select everything and click Vertical Align Center and Horizontal Align Center in the Align palette; you may click the pointy group or the circles ojnce more before aligning if you want to keep it in place (that will make it the key object that the other set is aligned to).
    These ways may also help you further.
    Edit: About half an hour after midnight here. High time to attend to other duties, before the sun is up.

  • I have bought a new computer and backed up off time machine backup now I cannot open photoshop get error code 150 30 help appreciated.

    I have bought a new computer and backed up off time machine backup now I cannot open photoshop get error code 150 30 help appreciated.?

    Have you updated your iTunes on your computer? WIth a device running iOS7, you need iTunes 11.
    When you removed iTUnes, did you see something named 'apple mobile device support' or something like it? (The exact name varies from operating system to operating system). If you see that, uninstall it too. That's the drivers for your iPhone and they should self-install when you plug your device in.
    If all that is fine, have you checked your cable and USB port? a malfunctioning cable can keep you from syncing.

  • DirectX 9.0c Graphics Help

    Hey!
    The other day, I had bought a Roxio Game Cap for my Xbox 360 and I'm not able to run the software for it seeing as it is in need of DirectX 9.0c graphics which I have nearly no knowledge of. So this is fairly simple, but I'm looking for a cheap simple graphics card that supports HDMI and DirectX 9.0c or higher(preferrably much higher if possible). I'm currently running an HP Pavilion a4317c which is found here. It's still just how it was 5 years ago with no new hardware or OS. As I said, I'm just in need of a basic cheap card that would support what I'm looking for and would be installed well for my system. I may also be in need of a sound card, yet I'm not sure. The product specs are found here if anyone is in need of more information.
    All help on this is very well appreciated
    Thanks, 
    Peter
    This question was solved.
    View Solution.

    Peter,
    Most of the newer retail graphics cards typically state a minimum power supply requirement of 300-400 watts by the manufacturer.  Go out to EVGA and review the power supply requirements for say the low end  NVIDIA graphics cards.
    This Corsair CX500 is $30 after rebate.  Excellent buy and will support many of the better graphics cards.
    This EVGA 640 is on sale for $70 after rebate.  This card supports DirectX 11 and has HDMI.
    Review this posted article.
    You might want to search this forum for the history of the motherboard being used in your PC.
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

  • HT1212 I am unable to get our of a continuous cycle when trying to update or restore my iPad 2. Plug in to iTunes 12.0.1 (latest version). Click update, told can't update, have to restore. Restore fails with error 9. Any help appreciated.

    When I tried to update my iPad I got an error 9. Now, I am unable to access my iPad. It is in a continuous cycle when I try to update or restore the iPad 2. Plug in to iTunes 12.0.1 (latest version). Click update, told can't update, have to restore. Restore fails with error 9. Any help appreciated.
    Here's the cycle:
    I plug in my iPad when “cable to iTunes shows on iPad screen. It says "Your iPad can't be updated, you must restore it to factory settings." That bad enough news, but it gets worse.
    Click Restore
    Extracting software…
    Preparing iPad for restore
    Waiting for iPad…
    Verifying iPad restore with Apple…
    (empty bar under the Apple logo…does not show any activity)
    “The iPad “iPad” could not be restored. An unknown error occurred (9).”
    Notes: I just upgraded to OS X Yosemite 10.10.1 on my iMac (27-inch, Mid 2011) in the last week. It’s the first time I’m tried to backup/update my iPad since the iMac update.
    I swapped out the USB cable to a new cable and get the same results.
    I also unplugged all other USB devices from the iMac and security on my iPad and still get the same results.
    I find it strange that it shows no Serial number for my my iPad 2 when plugged in. It shows “Serial Number: n/a on the screen when it displays: “iPad Recovery Mode To update your iPad without erasing its contents, click Update. To restore your iPad to its factory settings, click Restore iPad.
    I prefer to update my iPad, but it displays “Your iPad can’t be updated, you must restore it to factory settings. If you previously backed up the iPad, click Restore Backup after the restore process completes.”
    It’s a continuous loop. I get the display on my iPad to plug in the iPad to iTunes, plug it in which ends after going through the above procedure saying an error occurred (9).
    So now I cannot use my iPad. When I turn it on I get the display showing me to plug it into iTunes with the cable. Since this is the only option I have I plug it in and the loop begins.
    Any advice would be appreciated.
    Thanks!

    Hello jaybearden,
    Thanks for the question. After reviewing your post, it sounds like you are not able to restore the iOS device since you get an error 9. I would recommend that you read this article, it may be able to help the issue.
    Resolve iOS update and restore errors - Apple Support
    Check your security software
    Related errors: 2, 4, 6, 9, 1000, 1611, 9006. Sometimes security software can prevent your device from communicating with either the Apple update server or with your device.
    Check your security software and settings to make sure that they aren't preventing a connection to the Apple servers.
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • I have attempted to upgrade os4 to os7. icloud has taken an old expiered email address for which i do not know the password. It will not recognise my current email and password with itunes.  Any help appreciated

    I have attempted to upgrade os4 to os7. At the end, it threw an error that i had to turn off "Find my iphone" on my phone, which seems to be impossible at that stage as i could not access beyond the upgrade screen.
    I thin chose to set up as new iphone, but icloud has taken an old expired email address for which i do not know the password. icloud will not recognise my current itunes email and password, so i now have os7 but am unable to restore from my itunes back up. 
    Desperately need help please... Any help appreciated
    Thankyou

    If you don't know your password, don't know your security questions and don't have a rescue address or don't receive a reset email, you should contact AppleCare who will initially try to assist you with a reset email or if unsuccessful will pass you to the security team to reset your security questions for you.
    If you are in a region that doesn't have international telephone support try contacting Apple through iTunes Store Support.

  • TS1717 Trying to download iTunes onto PC installed with windows vista. Download keeps getting to 99% with 1 second remaining and then freezes / does nothing? Any help appreciated.

    Trying to download itunes onto PC installed with windows vista. Download keeps getting to 99% with 1 second remaining and then freezes / does nothing? Any help appreciated.

    I solved the problem! The updates orignally were downloaded to the C: drive of the server. I've since moved them to the E: drive and for some reason the Content folder in IIS didn't change the file path to the new WSUScontent folder.
    The root cause for this was failing to use the UTILITY designed for this very purpose.
    I edited the virtual directory settings in IIS and was able to put the correct path in.
    You still need to use the UTILITY.. to fix all the other stuff you're still missing.
    In the %ProgramFiles%\Update Services\Tools folder...
    WSUSUTIL MOVECONTENT E:\WSUS E:\WSUS\MoveContent.LOG -SKIPCOPY
    This problem was caused by moving the WSUS updates to a different local drive.
    No. This problem was caused by IMPROPERLY moving the WSUS updates to a different local drive.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • I somehow installed a version of Firefox which won't work on my "old" iMac G5 (10.5.8) so I trashed the program and now I can't get it out of my trash bin... Any help appreciated because now I can't empty my trash at all! Thanks.

    I somehow installed a version of Firefox which won't work on my "old" iMac G5 (10.5.8) so I trashed the program and now I can't get it out of my trash bin... Any help appreciated because now I can't empty my trash at all! Thanks!!

    You must purchase a new QT key for each computer.
    Since you have a new iMac, you are entitled to 90 days of FREE phone tech support from Apple and you can use the Chat with a Support Agent. The online chat support _*is available 24 hours a day, 7 days a week.*_
    If you've purchased an AppleCare Protection Plan, you're eligible for the duration of that agreement.

  • Scrollbar Help Appreciated!

    Hello everyone, this is my first post and was hoping for some
    advice.
    I am fairly new to Flash, I have no idea about Actionscript,
    a part from stop();
    I have designed a button that when you put your mouse over,
    it slides out using a motion tween to reveal a panel with thumbnail
    pictures. However, I need to make the panel scroll downwards to fit
    all of the pictures on. When I click on the pictures, I want it to
    take me to the relevant frame.
    Please could someone point me in the right direction as to
    how I could do this, links anything!
    Many thanks,
    Helen

    You could try to put the two trees into a ScrolledComposite.
    This way they should always have enough space available and probably
    won't display their own scrollbar.
    See the SWT teams Snippets page for an exmaple how to use ScrolledComposite.
    Yves
    exquisitus wrote:
    > Hi - I have 2 trees side by side in a composite. I want both to use only
    > the composite (vertical) scrollbar as oppose to each using their own.
    > I've tried setVisible(false) but as soon as a resizing takes place the
    > scrollbar appears plus this does not force it to use its parent. Is
    > there a way of forcing a Tree Widget to use its Parent scrollBar. Any
    > help appreciated.
    >

  • I am trying to connect my ipad to the internet via wifi/3g wireless router/wireless dongle..it finds the router but not the dongle connected to it..any help appreciated

    HI...just purchased a new ipad 2 16gb wifi only... Was also sold a 3g wireless modem so that i could connect it to my already owned wireless internet dongle.. upon trying to set it up  i can get the Ipad to find the wireless router but thats it. When I plug my dongle into the wireless router as i would with my laptop the light goes green as it does when connecting the laptop but thats about as far as I can get...any help appreciated...cheers Brett

    There are 3G Moblie Broadband Router i.e. a 3G dongle connected to a 3G router
    http://www.aztech.com/prod_3g_hw550.html

  • I'm trying to import my old "on myMac" mail folders from my 4 yr old MacBookpro to my new macbookpro.    Help.

    I'm trying to import my old "on myMac" mail folders from my 4 yr old MacBookpro to my new macbookpro.    Help.     I didn't have iCloud or me mobile.    I searched apps but can't find anything that addresses this problem.   I liked the old mail program and how I could create many files or smart mailboxes.   Any ideas would be appreciated.   Thanks in advance. 

    Welcome to the Apple Discussions. If you don't have a backup copy of the Domain.sites2 file that iWeb uses to create the site you'll have to start over from scratch. However, Chapter 2.3 on the iWeb FAQ.org site has tips on using some of the existing image, audio and/or video files in the published site in the reconstruction of the site.
    Happy Holidays

  • Graphics help please...

    I am trying to use a rubberband rectangle in my app. everything works great except I can't get the rectangle to dissapear when the mouse button is released. Code is posted below - any help appreciated, thanks.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Rubber extends JLayeredPane implements MouseListener, MouseMotionListener {
          private int mouseX, mouseY; 
          private int prevX, prevY;    
          private int startX, startY;  
    public Rubber() {            
           addMouseListener(this);
           addMouseMotionListener(this);
    private void drawRect(Graphics g, int x1, int y1, int x2, int y2) {          
            int x, y;
            int w, h; 
            if (x1 >= x2) { 
                x = x2;
                w = x1 - x2;
            else {        
                  x = x1;
                  w = x2 - x1;
            if (y1 >= y2) { 
                y = y2;
                h = y1 - y2;
            else {       
                  y = y1;
                  h = y2 - y1;
            g.drawRect(x, y, w, h);   
    private void repaintRect(int x1, int y1, int x2, int y2) {          
            int x, y; 
            int w, h; 
            if (x2 >= x1) {
                x = x1;
                w = x2 - x1;
            else {       
                  x = x2;
                  w = x1 - x2;
            if (y2 >= y1) {
                y = y1;
                h = y2 - y1;
            else {        
                  y = y2;
                  h = y1 - y2;
            repaint(x,y,w+1,h+1);       
    public void paintComponent(Graphics g) {  
           g.setColor(Color.black);
           drawRect(g,startX,startY,mouseX,mouseY);
    public void mousePressed(MouseEvent evt) {    
           prevX = startX = evt.getX();
           prevY = startY = evt.getY();      
    public void mouseReleased(MouseEvent evt) {
           mouseX = evt.getX();
           mouseY = evt.getY();
           repaint();
    public void mouseDragged(MouseEvent evt) {
           mouseX = evt.getX();  
           mouseY = evt.getY();  
           repaintRect(startX,startY,prevX,prevY);
           repaintRect(startX,startY,mouseX,mouseY);
           prevX = mouseX;
           prevY = mouseY;
    public void mouseEntered(MouseEvent evt) { }
    public void mouseExited(MouseEvent evt) { }  
    public void mouseClicked(MouseEvent evt) { }
    public void mouseMoved(MouseEvent evt) { }  

    Try this;-
    public void mouseReleased(MouseEvent evt) {
    mouseX = evt.getX();
    mouseY = evt.getY();
    dontDraw=true;
    repaint();
    if(!dontDraw)g.drawRect(x, y, w, h);

  • HT4623 "Software update" (words)don't appear when I press settings/general.should appear below "about"on my iPad 2 version4.3.5(8l.1) tenable me to update to ios6 any help appreciated

    In "settings/general" the words SOFTWARE UPDATE don,t appear below ABOUT or anywhere under GENERAL to enable me to update to ios6 . Any help appreciated.

    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.1.3. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
    Tip 2 - If you're updating via wifi, place your iPad close to your router to preclude getting a corrupted download.
     Cheers, Tom

Maybe you are looking for

  • My ipad no longer shows up as a listed device on my computer

    Several days ago my computer received a Windows 7 update. Since then my ipad no longer shows up when I hit the Start button and go to "Computer". Up until recently it had been listed as a portable device. I switched USB ports, but that didn't help. I

  • Issues with Adobe CS and Permissions in Snow Leopard

    Me: Model: iMac7,1, BootROM IM71.007A.B03, 2 processors, Intel Core 2 Duo, 2.4 GHz, 3 GB, SMC 1.21f4 Running Mac OS X 10.6.8 (I know time to upgrade) Also related to this I'm using Adobe Creative Suite 5 (Indesign 7) So it started a couple of days ag

  • Interface to Client Tier

    Thank u Scott Orshan We use the "dispatcher" service because we wanted to supply a general interface to the Client Tier. Do you have some better suggestion? Is it nessary? or, We use a control class to tp_call the service? Scott Orshan <[email protec

  • Some websites broken in all browsers after Lion upgrade

    After upgrading from 10.6.8, some websites are not loading properly in any web browser (latest versions of Safari, Chrome, Firefox, Opera). The pages appear as just text, with no images or css. This is happening in both 10.7.2 and 10.7.3. Example sit

  • Camera downloads photos to computer into a folder by name of year only

    How can I download photos to folder  named as such: 2014_05_02  with photos inside for that day only.  My file shows as  year only 2014 and inside 04 or 05 representing month. Solved! Go to Solution.