I want to edit PNG file. But i can't it. Please tell me.

public void Database()
      try
                        InputStream inputstream1 = getClass().getResourceAsStream(name1);               
     InputStream inputstream2 = getClass().getResourceAsStream(name2);
     int ch;
     int index = 0;
     int len1 = inputstream1.available();
     int len2 = inputstream2.available();
     System.out.println("\n"+name1+"  "+len1);
     data1 = new byte[len1];               
     while ((ch = inputstream1.read()) != -1)
     data1[index] = (byte)ch;
     index++;
     System.out.println("\n"+index+"\n\n");
     inputstream1.close();
          catch(Exception e)
             e.printStackTrace();
}i can get byte of file. but i can't edit file pic to png file

If these are images that are completely under your control you could not store them as pngs, but instead create your own format, where you just store them as an array of pixels in RGB format (probably with a small header to include genreal information like the dimensions), something similar to BMP. When you load the image you wouldn't be using the Image.createImage() methods, but instead write your own method that creates a blank image and draws in the colors. This will allow you to edit the pictures any way you please even on MIDP 1.0 phones without any proprietary APIs. It means you would need to write a tool to export images in the format you create.
If you limit yourself to MIDP 2.0 then you could just load the image and use the getRGB() and createRGBImage() methods to manipulate pixels. With MIDP 1.0 you could also do this on certain phones, if they have extension APIs like Nokia's DirectGraphics class for example.
shmoove

Similar Messages

  • I have a lot of HD video on my hard drive that I eventually want to edit in iMovie, but just don't have the time now.  It is clogging up the computer, though.  How do I take the Hd clips off Mac for later editing?

    I have a lot of HD video on my hard drive that I eventually want to edit in iMovie, but just don't have the time now.  It is clogging up the computer, though.  How do I take the Hd clips off Mac for later editing?

    See "Storage drive" here
    Most commonly used backup methods
    Th problem with HD video is it needs a fast external interface, so you should pick a external drive that uses the fastest interface your computer has to offer.
    Performance rank fastest to slowest is
    Thunderbolt, USB3, (newer Mac's)
    Firewire 800, USB 2, Firewire 400, USB 1 (older Mac's)
    Newer Windows PC's have USB3, older one's USB 2,1.
    You need to format the drive if it comes FAT which a lot do, as FAT has a 4GB file size limit, so this won't work with large HD video files.
    So if your  going to use the drive only with a Mac, then head to Utlities > Disk Utility and format it Options: GUID Format: OS X Extended Journaled. (select the drive makers name and click Partition tab)
    If your going to use the external drive with a PC, take it to the oldest PC you have and right click and format exFAT.
    If you have a Windows XP machine and there is no exFAT, it can be downloaded for free from Microsoft.
    Drives, partitions, formatting w/Mac's + PC's

  • When I send a pages file from my ipad to my mac i can edit the file but when i try to print it shows blank why

    when i send a pages file from my ipad to my mac, i can edit the file but if I try to print it shows blank and will not print anything

    Is there a reason you are not storing your Pages documents in iCloud?  That would work for both your MacBook and iPad if you choose to use it (assuming your MacBook is new enough to support an OS X version that supports iCloud).
    If you choose this method, any updates you make on one device would immediately be made available on the other (once you close the file).

  • I have MacBook,the disk is already full.when I open it I can't see the icons below.im trying to delete my files but I can't...

    I have MacBook,the disk is already full.when I open it I can't see the icons below.im trying to delete my files but I can't...what should I do?my screen shows only color blue screen and apple icon,file,edit,view,share,window and help on the upper left of the screen...

    If she can't remember the ID/password, she will need to go to https://iforgot.apple.com to recover it/reset the password or she will have to call Apple and speak to someone in account security.

  • TS4268 i use my apple id that i create it for my iphone 4 on my new iphone 5,then i want to activate the imessage but i can't.what should i do?i want to know i can't use one apple id for two iphone 4 & 5?

    i use my apple id that i create it for my iphone 4 on my new iphone 5,then i want to activate the imessage but i can't.what should i do?i want to know i can't use one apple id for two iphone 4 & 5?

    HI
    I was trying to take my Mac air to factory default settings.
    I've done all that it says in the documment i was following, and them during the process it asked me the APPLE ID.
    I put the apple id i have in my iphone. But it's not the one... it's said that i don't have any OSX associated with it... so it can not install the OSX.
    So what can i do?

  • I am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me

    Dear ALL,
    i am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me solutions.
    var myBookFileName ,myBookFileName_temp;
                    if ( myFolder != null )
                            var myFiles = [];
                            var myAllFilesList = myFolder.getFiles("*.indd");    
                            for (var f = 0; f < myAllFilesList.length; f++)
                                        var myFile = myAllFilesList[f]; 
                                        myFiles.push(myFile);
                            if ( myFiles.length > 0 )
                                        myBookFileName = myFolder + "/"+ myFolder.name + ".indb";
                                        myBookFileName_temp=myFolder.name ;
                                        myBookFile = new File( myBookFileName );
                                        myBook = app.books.add( myBookFile );  
                                       myBook.automaticPagination = false;
                                        for ( i=0; i < myFiles.length; i++ )
                                                   myBook.bookContents.add( myFiles[i] );             
                                        var pdfFile =File(File(myFolder).fsName + "\\"+myBookFileName_temp+"_WEB.pdf");
                                        var bookComps = myBook.bookContents;
                                        if (bookComps.length === 1)
                                                       bookComps = [bookComps];
                                         var myPDFExportPreset = app.pdfExportPresets.item("AER6");
                                        app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFEx portPreset,bookComps);
                                      //myBook.exportFile (ExportFormat.pdfType, pdfFile, false);
                                      //myBook.exportFile(pdfFile, false, pdfPref, bookComps);
                                        myBook.close(SaveOptions.yes);      

    Change the below line:
    app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset,bookComps);
    to
    app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset);
    Vandy

  • I can see and download pdfs in Mail, but I can't even see editable pdfs in Mail.  can anyone help please?  Thx.

    I can see and download pdfs in Mail, but I can't even see editable pdfs in Mail.  Can anyone help please?  Thx.

    Thx Eric.  You've helped!  When I tried to copy the words written in my e-mail to show you what I meant, I right clicked to copy, and saw an option to open the attachment, which it did!  So I'm sorted thank you.  Editable means a form which you can fill in and send back.  Thanks again.  Stephen

  • HT204053 Hello, I want to change my ID but I can't.i go to my iPad store and sign in my new ID but don't accept.

    I want to change my ID but I can't.i go to my iPad store and sign in my new ID but don't accept

    I find that the  easiest way to change the account you are using on your mobile device is to scroll down to the bottom of the iTunes Store or App Store on the device and tap the Apple ID button. Then:
    - To sign out, or to sign in to a different account, tap the Sign Out button.
    - To sign back in, tap the Sign In button, then tap either Use Existing Apple ID or Create New Apple ID, and follow the on-screen instructions from there. I hope this helps.

  • I want to edit a downloaded document. Can anyone recommend a program to do this. Thank you

    Hi I am new to macs. Like I said above I want to edit a downloaded document. Can anyone recommend a good programme to do this. Thanks

    there are 1000's of document formats in the world
    so it really comes down to what type you wish to edit
    if I were you then I would checkout libre office and maybe iworks

  • I need to read Pages files but  I can't install Pages on osx 10.6

    I  need to read Pages files, but I can't install Pages because I have OSX 10.6.  Is there some version that will work?

    You can get iWork 09 on the net. You haven't had Pages before? Who is sending you Pages documents? Ask them to export the document to Word or Rtf and you will be able to read the documents in TextEdit, which you have on your computer

  • I want to buy lightroom. But I can't . Error of country.

    Je voulais acheter LIGHTROOM MAC. Mais le processus s'arrête au paiement. Erreur de country. En refaisant la démarche, je n'ai plus les moyens de corriger. Comment faire? Merci de me renseigner. 

    Bonjour !
    I  shall try again, with a different name and a different mail. Thank you for this answer.
    Le 14 mars 2015 à 04:02, johnhawk666 <[email protected]> a écrit :
    I want to buy lightroom. But I can't . Error of country.
    created by johnhawk666 in Photoshop Lightroom - View the full discussion
    Try creating an Adobe ID with your country entered as your homeland when prompted to by the registration process. This should allow you to buy Lr in your country.
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7291922#7291922 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7291922#7291922
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Photoshop Lightroom by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.
    FABREGUE Maurice
    S. Y. L.  BYE ! BYE !

  • Hi i just bought tyhe product Export PDFs to Word and Excel . but ni only sussace conver the small file ,the large file such as n3000kb ,it can't work, please tell what can i do now thanks

    Hi i just bought tyhe product Export PDFs to Word and Excel . but ni only sussace conver the small file ,the large file such as n3000kb ,it can't work, please tell what can i do now thanks

    Hi i just bought tyhe product Export PDFs to Word and Excel . but ni only sussace conver the small file ,the large file such as n3000kb ,it can't work, please tell what can i do now thanks@

  • I want to download an app, but i can't because i have forgotten my security questions.  Is there a way to change them without needing the old ones?

    I want to download an app, but i can't because i have forgotten my security questions.  Is there a way to change them without needing the old ones?

    You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (103535)

  • I want to buy an app, but I can't because I forgotten my security questions which I can't reset because I didn't mention a rescue mail box...

    Hello
    I want to buy an app, but I can't because I forgotten my security questions which I can't reset because I didn't mention a rescue mail box...
    I have already bought apps and games, but from my iPhone 4S, here i want to do it from my iPad 2, that's why it asks me security questions.
    Please help me.
    PS : The App is Pages.

    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312

  • I want to cancel the plan, but I can't and i followed most of the steps.

    I want to cancel the plan, but I can't and i followed most of the steps.

    Please see your other thread:
    How do I cancel my plan? And contact wont work and the "cancel button" sends me somewhere else.

Maybe you are looking for