How to transfer Object int into int[]?

I create an array:
int temp[]={};
After I value data for each temp element, it becomes Object. //Why?
When I call:
SaveRGB=mImage.getColorModel().getRGB(temp);
It tells me found java.land.Object,
required: int[];

No problem.
The following is parts of my code:
int[] SaveRGB=mImage.getRGB(0,0,(int)mImage.getWidth(), (int)mImage.getHeight(),null,0,(int)mImage.getWidth());
int[] intSave=mImage.getColorModel().getComponents(SaveRGB, null, 0);
for (int i=0; i<=intSave.length-3; i+=3)
if(intSave[i+1]-intSave<4 && intSave[i+2]-intSave[i+1]<4){
intSave[i]=0;
intSave[i+1]=0;
intSave[i+2]=0;}
else{
intSave[i]=255;
intSave[i+1]=255;
intSave[i+2]=255;}
SaveRGB=mImage.getColorModel().getDataElements(intSave, 0, null);
The compiling message is:
found : java.lang.Object
required: int[]
SaveRGB=mImage.getColorModel().getDataElements(intSave, 0, null);

Similar Messages

  • I have a great number of Hi8 video tapes and I would like to burn them onto CDs through MacBook Pro (ME665LL/A), but I do not know how to transfer those footage into Mac. What would you recommend?

    Hello everybody! My question is; my parents and I have a great number of video tapes (Hi8 and mini DV) and since I purchased a MacBook Pro (ME665LL/A) I would like to burn them onto CDs, but I do not know how to transfer those footage into Mac. What would you recommend(it can be a software, a hardware or combination of both)? By the way, I also purchased an external DVD-RW(Asus SDRW-08D2S) separately.

    Just Google "convert hi8 to dvd" and you'll find a number of software/hardware combinations that will allow you to do what you want. One important piece of the puzzle is whether or not you still have access to the video recorder(s) that the movies were shot on.
    Good luck,
    Clinton

  • How to transfer input file into XI through sender file adapter

    Hi
    I am quite new to XI. Want to know how I can transfer a file into XI through sender file adapter. I dont have any input file, so I have to create a sample input file and I want to transfer that into XI. Can you please advise me of the steps involved in that. I have finished work in design and directory, now I want to push file the sample file into XI. The receiver adapter is an IDoc adapter. And also a very trivial question. How I can place my sample file into my source directory. Thanks

    Hi Rajiv,
    If your transport protocol is NFS then you need to put the file in the XI server. Because it becomes the Network File System. For that you can just type the ip address of the XI server in the "run" command or in the browser with "
    " then in any of the Folders you can paste your file. But ensure that this is the path you give in your Sender File Adapter.
    If your transport protocol is FTP then you need to see that ftp is running in your system. for that go to Control Panel>Add/Remove Programs>Add/Remove Components. In that check the IIS server and go to details and see that ftp is also checked. Now ftp is running in your system.
    Now open your C:> drive >InetPub>ftproot . and create a folder here and paste your file. In the configuration of your File sender adapter just mention the name of the folder.
    For your information, you can create a file with xml tags and namespace and message type manually (or) you can directly get it from the test tab of message mapping and generate source code.

  • HT1329 My old computer crashed but still have my IPOd with old music. How to transfer the music into new computer which has already music in it?

    My old computer crashed and I still have my music in an IPod. How to transfer the music/playlists into a new computer which has already music in it? (Not possible to copy ITunes of old computer in IPod)
    Thanks

    Lucky for you, I just found out how to get the music stored on your iPod by messing around with it. I'm not much of an Apple user (I only have a shuffle), so I'm not 100% sure it would work the same way as yours.. but it's worth a shot.
    if your iTunes didn't sync with your iPod yet,... that would be great..
    1, Make sure your iTunes does not automatically sync with your iPod (I don't know if this would help..)
    2, Click on your iPod and go to settings, check "Enabe Disk Use"
    Your iPod should now have a partition on My Computer called AFJCHAW's IPOD or whatever you named your iPod... If you go to that disk, you'll notice there's nothing in there.
    3, Click on Organize at the top right part of Windows Explorer(Windows 7, don't know how in XP..), go th the Folder and search options, view tab, and click on show hidden files, folders, and drives.
    If you go back to your disk, you should be able to find a folder
    4, It'll be pretty straightforward then. Go to iPod_Control/Music. You'll find folders there. Inside the folders are each of your music files (they're renamed but the Details would still be about the same).
    If you did get your music files back from this procedure, then, yay! it worked!!
    If you didn't,.... it should've worked..

  • How to transfer iPhoto library into another existing iPhoto library?

    Hi. I need to transfer iPhoto (the whole library - created folders and the events the way they been downloaded from camera) from Imac iPphoto to an existing MacBook iPhoto library. I did find in here how to transfer the entire library to the new computer, but when the new comp doesn't have any photos in it yet… to do so >>> copy iPhoto Icon > paste into HD > then copy and paste in to HD on new macbook…. But how can I do it so i don't overwrite that existing library? Thanks heaps for answer. PS. would you call it "merging the libraries"?

    You can not do anything with a Time Machine backup - you must use TM to restore it to disk first - you can not directly access your iPhoto library on the TM backup
    LN

  • How to transfer pdf's into Keynote?

    Having recently bought an ipad with keynote I am trying to sort out how to convert Pdf files into Keynote. The pdf page size is formatted to the ipad screen size already. Is it possible or do I have to buy Keynote for my Imac and import them as individual images?

    I am working on a similar issue. I can get the PDF into Keynote using Acrobat Pro (very expensive) I am usingit on a Mackbook Pro Retina. the issue I am having is that the PDF shrinks to fit the PDF to the slide and when it does that it changes the word placement. It stays in the same colum but part of the word is on top and the rest of it is below the top. I have to spend some more time on it. I don't think that you will be able to do what you want with the ipad? The Ipad and the Imac are two different programs with the full program on the Imac.

  • How to transfer log files into Database Table.

    Hello,
    I have a requirement. My Front end is Oracle Application. If any user deletes the data from front end screen. One log file should be generated. That file will save in one folder in my server. And That log file consists which code is deleted.
    And the user name who deleted the code, time and deleting status..
    Now my requirement is i have to develop a report to display the log file data. But i dont have a database table to retrieve the data. The data consists Log files.
    How to transfer the Log files in DB table.
    I need a data in DB table to develop a report.
    Thanks...

    How do I ask a question on the forums?
    SQL and PL/SQL FAQ
    is application 3-tier

  • How to transfer XML-Data into a WebDynPro-Application?

    An external partner has a calling interface that sends a HTTP-Redirect to a specific application-url and transfers all the data in one POST-Parameter.
    The value of this POST-Paramater (CALLINTERFACE) consists the XML-Data.
    <form id='InterfaceData3' method='post' action='/ProduktFrontController/Start'>
    <textarea cols="80" rows="30" name='CALLINTERFACE'><?xml version="1.0" encoding="UTF-8"?>
      <authentifizierung version="1.0">
           XML-Data.....
      </authentifizierung>
    <br>
    <p><input id='button1' type='submit' name='Button' value='Absenden'></p>
    </form>
    Standard-Java:
    In our Java-Application we can read the POST-Value (XML-Data) via the HTTPServletRequest-Object/Instance.
    WebDynPro-Java:
    IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
    IWDRequest request = protocolAdapter.getRequestObject();
    String xmlData = request.getParameter("CALLINTERFACE");
    In WebDynPro for ABAP I couldnt find a equivalent solution /technic to read the POST-Parameter-Value.
    So I have to write a lot of annoying 'glue-code':-(      (HTTP-Request-Handler for reading, Shared Memory / Objects for transfer to WebDynPro ABAP),
    (Remark: It's no solution to transfer XML-Data via a URL-Parameter because it is too big (> 1 KByte) and the external partner doesn't support this option!).
    My questions:
    1) What technics for transfering Data (not only 2 or 3 Parameter) form external web-applications into WebDynPro ABAP applications does SAP support?
    2) Is it possible to reach the calling HTTP-Request from WebDynPro-ABAP? (MayBe via ABAP-Callback-Functions)
    Sincerely
    Steffen

    Hi,
    thank you for your answers:-)
    In conclusion the result is:
    1) There is no "direct" way to read POST-Parameter in WebDynPro ABAP
    => You have to write a wrapper in BSP or an ICF -  HTTP_REQUEST_HANDLER
      (A  ABAP-Class that implements the Interface "IF_HTTP_EXTENSION"
         that reads the POST-Parameter-Value and transfers the value into a reachable localtion for WebDynPro-Abap.
    2) For parsing the XML-Data I can use for example STRANS tcode or  Simple Transformations
    3) For transfering the Data between the BSP / the Request-Handler and WebDynPro for ABAP, I can use for example SharedMemory, Shared Objects.
    Regards
    Steffen
    Edited by: Steffen Spahr on Jul 19, 2011 8:35 AM
    Edited by: Steffen Spahr on Jul 19, 2011 8:55 AM

  • How to Transfer iTunes Info into ID3?

    Hi all,
    I Have my itunes Library sorted to my liking, but I want all the information (Artist, Genre, Year, Album Art etc) to be transfered to the Mp3's ID3 Tag so all the info is portable. Does anyone know how to use this? I'm using 10.5.3 OS X w/ the latest version of itunes, thanks again!

    I Jut found that it copied my library into another folder and all of those are tagged! (Though the originals I have Placed in the Library remain unchanged? Also, In that new folder it made with copies w/ ID3 tag, sometimes there are two of each in a folder, does anyone know why? Ie.
    Artist - Song
    Artist - Song 1
    Anyone know why this is happening? Thanks for the quick reply!
    EDIT:
    Sorry for the confusion, but here's my overall problem. I have all my music sorted in a folder as I like it, though I didn't know an option was on to copy my music over to another folder. What I would like ultimately is to get rid of all the music that it created, and have it use the original files as the m=path to the MP3's, though I would like to transfer all the ID3 Tags (Genre, Artist, Albumart, etc) that I have currently set. Is this possible? Or do I have to clear the library and individually add them back album-by-album with the copy-to-another-folder option off? Thanks again!
    Message was edited by: Jadestone

  • How to insert object values into table.

    Hi All,
    I have a problem with passing java object to procedure. Procedure is running properly when I execute in oracle,but it is not executing when I call from Java.
    I am getting Error :
    java.sql.SQLException: invalid name pattern: Pkg_Bulk_Insert.ITW_EMP_OBJ_ARRAY
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
         at oracle.jdbc.oracore.OracleTypeADT.initMetadata(OracleTypeADT.java)
         at oracle.jdbc.oracore.OracleTypeADT.init(OracleTypeADT.java)
         at oracle.sql.ArrayDescriptor.initPickler(ArrayDescriptor.java)
         at oracle.sql.ArrayDescriptor.<init>(ArrayDescriptor.java)
         at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java)
         at JavaObjectToOracle.main(JavaObjectToOracle.java:31)
    Here I am copying my procedure,oracle version is 9i.
    Package specification:
    CREATE OR REPLACE PACKAGE Pkg_Bulk_Insert AS
    TYPE ITW_EMP_OBJ_ARRAY IS VARRAY(20) OF VARCHAR2(200);
    PROCEDURE BULK_INSERT_TEST(strTable IN ITW_EMP_OBJ_ARRAY);
    END Pkg_Bulk_Insert;
    package body:
    CREATE OR REPLACE PACKAGE BODY Pkg_Bulk_Insert AS
    PROCEDURE BULK_INSERT_TEST(strTable IN ITW_EMP_OBJ_ARRAY) AS
    i BINARY_INTEGER;
    BEGIN
    FORALL i IN 1..strTable.COUNT
    INSERT INTO TEMP(NAME)
    VALUES(strTable(i));
    COMMIT;
    END BULK_INSERT_TEST;
    END Pkg_Bulk_Insert;
    Here I am invoking the procedure:
    DECLARE
    x Pkg_Bulk_Insert.ITW_EMP_OBJ_ARRAY;
    BEGIN
    x := Pkg_Bulk_Insert.ITW_EMP_OBJ_ARRAY('A','B','C');
    Pkg_Bulk_Insert.BULK_INSERT_TEST(x);
    DBMS_OUTPUT.PUT_LINE('AFTER INSERTION');
    END;
    Please any body can help me on this regard.

    Your PL/SQL seems reasonable.
    My suspicion would be that the oracle.sql.ArrayDescriptor.createDescriptor class only supports persistent collection types, i.e. those declared at the schema level with CREATE TYPE.

  • How to transfer a prospect into customer

    Hi Abapers,
    Can someone please let me know how can you convert a prospect into a customer in CRM?
    usefull answers will be rewarded nicely!.
    Thanks,
    Abhinav.

    By adding a role 'Customer' your system does not much by itself: It is important that the flag 'is Customer' is also set. Once this flag is set, the R/3 recognizes the BP as a customer. Then in R/3 you can change the account group which you use for CRM prospects to the one you use for customers (if you use a separate one) and fill in the mandatory fields.
    Regards, Kai
    BTW: Some installations filter also on this flag (but000-bpiscust) so that prospect who do not have this flag set are not sent to R/3.

  • How to transfer PDF book into Digital Editions library?

    I recently purchased a reference book which downloaded to Adobe Reader, so I have it stored in Adobe Cloud.
    Can this book be transferred to Adobe Digital Editions ?
    How?

    I am working on a similar issue. I can get the PDF into Keynote using Acrobat Pro (very expensive) I am usingit on a Mackbook Pro Retina. the issue I am having is that the PDF shrinks to fit the PDF to the slide and when it does that it changes the word placement. It stays in the same colum but part of the word is on top and the rest of it is below the top. I have to spend some more time on it. I don't think that you will be able to do what you want with the ipad? The Ipad and the Imac are two different programs with the full program on the Imac.

  • How to Transfer Objects from one Package to another?

    Hi,
    I have Objects(Form Layouts,ABAP Programs....ect) in Package. Is there a particular Transaction that could be used to move these objects to another Package.
    Thanks
    Kishan

    Hi,
    You can also find more detailed explanation at <a href="http://help.sap.com/saphelp_erp2004/helpdata/en/d1/801972454211d189710000e8322d00/frameset.htm">this link</a>.
    Regards,
    Anand Mandalika.

  • How to transfer the iphone into a new mac

    how do I edit playlists in my iphone using  a new mac (the playlists were originally created on a Dell computer)

    Copy everything from your old computer, or your backup copy of your old computer, to your new one.
    Sync

  • How to transfer Oracle table into XML?

    Hello all,
    Can anyone give some inputs on this issue of transferring the Oracel table/database in XML?
    Thanks in advance
    Himanshu

    start with select xmlElement((xmlforest()) from your tables. The docs have detailed explanations on these and other xml functions and packages.
    ben

Maybe you are looking for

  • X230 Screen Replacemen​: Check for warranty.

    So I bought my x230 off of ebay, and apparently it has a 3 year limited warranty... but I do not know whether it has a warranty for the screen? My laptop tumbled a foot off the ground (it slid from the edge of the bathtub, where I placed it while I w

  • Itunes won't sync music to my iPhone5!!

    I just updated to OSX Mavericks and I have the latest update for iTunes, but when i sync my phone to my macbook pro and try to put my music on it, nothing happens. When it gets to part 4 or 5 (whichever one is the part where the music get's sync'd) i

  • Trying to update my iPhone to 5.0.1

    I am trying to update my iPhone 4 from version 4.2.6 to 5.0.1 and everytime I try it gives me the following error: An error occurred while backing up this iPhone(-43). You like to continue to update this iPhone? Continuing will result in the loss of

  • Can I get the Apple IBook Author on the New IPad

    Will the ibook author be available for the new iPad? I've got a MacBook but its easier to use the iPad because of a disability. I use an ibook creator on the iPad at the moment, but I would much prefer to use the Apple Ibook creator. I haven't actual

  • Editing a Flash template

    I have a Flash website template I bought online.  I'm trying to edit the template within Flash, and I'm getting nowhere.  I'm an intermediate level photoshop user, but new to Flash.  I've spent the entire day trying to find useful information on the