What type of BufferedImage is needed for 24 bit image data

Hello, i am using an image processing api, i have a 24 bit image data, i want to form a BufferedImage and set its pixel values with my data such as
BufferedImage image = new BufferedImage(w, h, what type?);
WritableRaster raster = image.getRaster();
int[] imgpixels = ((DataBufferInt) raster.getDataBuffer()).getData();
for (int i = 0; i < image.getHeight() * image.getWidth(); i++)
imgpixels[i] = ((myArray).getRed()) << 16 | ((myArray[i]).getGreen()) << 8 | ((myArray[i]).getBlue());
Then i will save the Buf. image to file as png. So what type of BufferedImage do i need?
Regards.

what is the reason when i read a 24 bit png image...it shows the type as 0 (TYPE_CUSTOM) ?
From the the Field Detail section for the TYPE_CUSTOM field in BufferedImage: the image type is not recognized.
You could make a new BufferedImage with TYPE_INT_RGB, or TYPE_INT_ARGB if the image has or will have transparent pixels, and copy the TYPE_CUSTOM image into it. Then you can manipulate/process the new image.

Similar Messages

  • What type of storage is needed for iTunes U

    We are getting up and running iTunes U on our University and we are running into the issue of what type of storage we need to provide for iTunes U, i.e. (web share, afp share, smb share. If you could let me know or point me in the direction i need to go it would be greatly appreciated.
    Thanks,
    Scott

    Hi Scott,
    The [administraton guide|http://deimos.apple.com/rsrc/doc//iTunesUAdministrationGuide/Introduction /chapter1_section1.html] doesn't explicitly state what type of server is necessary, but given that iTunes U is based on RSS feeds, a Web server would be a good choice for hosting your content (much like hosting any podcast).
    Hope this helps,
    Shawn

  • What vga adapter do i need for macbook air

    what vga adapter do i need for macbook air

    It depends on what type of display connection it has; if it's a Thunderbolt port, use a Mini DisplayPort adapter.
    (106351)

  • What type of qustions i need to ask to client before sap fico prject start

    what type of questions i need to ask to client before sap fico project starts
    helo guys
    i am new here as well i am fresher in sap FICO but my pm put me in project
    soon i am going to my clients place
    what type of questions i need to ask , before my sap fico project start
    what type of data i need to prepare AS IS -TO BE & SAP FI/CO BLUEPRINT START.
    GUYS PULL ME
    PLS
    REGARDS
    SUBU

    Hi Subu
    Initially you need to prepare topics wise questions and in the process the data collection should be from 2 sources i.e. Primary - collecting information directly by interacting with the client and the other one is Secondary - from the documents that you collect from the client.
    After formal introduction during the Kick off meeting never directly jump down to interact with the client you need to patiently observe the day to day business process of the client - department wise for the first few days. Do document all the observations that are made by you, this will help you to analyse the gap between the legacy system and std SAP Process.
    The first and the foremost thing is that we need to see on what flatform all the business process relating to Accounting is maintained i.e the software used to store the legacy data.\
    Now I will mention some of the important points that can be used a check list during your interaction with the client.
    1.We are the consultants who need to freeze the Enterprise Structure first and later on the other module consultants will add their respective enterprise elements to the enterprise structure freezed by us. Therefore this process will by itself will take not less than 1 to 2 months. This process is the Typical phase where a lot of interaction/understanding/experience will come into limelight. So be attentive and observe the process throughly, once the Enterprise Structure is freezed and configured we cannot withdraw from the system.
    2. Codification of the Enterprise Elements play a vital role do follow some naming convention. Here coding can be in 3 forms i.e. pure numeric, alfanumeric or pure alphabets.
    3. Identify the chart of accounts that is maintained.
    4. Grouping process of the GL Account According tos Schedule VI of Companies Act 1956
    5. Customer & Vendor Grouping - payment terms maintained - Down payment if applicable - how the memos maintained.
    6.. Collect all the documents relating to Procurement Process right from indent preparation to billing and followed by payment. This is very useful.
    7. CIN plays a very important role regarding this we will have a seperate session in the days to come.
    This is just a beginning and hope this will help you and as the time comes up do feel free to put up questions and I will clarify for the same.
    Regards
    Murali Kanth Natti

  • What HDMI cable do I need for my MacBook (2009) to my SONY HDTV? I thought the HDMI cable from my Apple TV would work, but it doesn't.

    What HDMI cable do I need for my MacBook (2009) to my SONY HDTV? I thought the HDMI cable from my Apple TV would work, but it doesn't.

    The model 7,1 is actually the Mid 2010 MacBook and is the only MacBook with a Mini DisplayPort that sends audio along with the video, Here's some Mini DisplayPort to HDMI with audio adapters from Amazon.
    http://www.amazon.com/s/ref=nb_sb_ss_i_3_35?url=search-alias%3Daps&field-keyword s=mini+displayport+to+hdmi+with+audio+for+macbook+pro&sprefix=mini+displayport+t o+hdmi+with+audio%2Caps%2C252

  • What type of licence to buy for a strictly Remote Desktop environment only?

    Hi there,
    I have a question about Server 2012 licensing for a specific operating environment. We have a single server in our company hosting our accounting and inventory software. Our software vendor allows us to use Remote Desktop Connection to connect to the server
    and use the software without needing to install individual copies in each user's machine.
    I also understand that Windows Server 2012 comes without pre-packaged CALs like how it used to be with Server 2003/2008 (where it came with a server licence and 5 CALs automatically).
    What's the appropriate licence needed for a usage environment like this? I am pretty sure we have to purchase RDS licenses (previously Terminal Services License) for each machine, but must each license be accompanied with a regular Client Access License? Our
    accounting software is unlike some other setups where the data is hosted on the server but all operating power is focussed on the client PC. In our scenario, all work is done exclusively on the server.

    Thanks for the replies. I have finally found a definitive answer on the Microsoft website (after a few days of virtual digging).
    http://download.microsoft.com/download/6/B/A/6BA3215A-C8B5-4AD1-AA8E-6C93606A4CFB/Windows_Server_2012_R2_Remote_Desktop_Services_Licensing_Datasheet.pdf
    And I quote for the benefit of everyone else looking for the same answers:
    "While RDS is shipped with Windows Server software, it is licensed separately through a Client Access License (CAL) model. This means that each accessing end point (i.e., a User or a Device) must be covered by an RDS license to access Microsoft VDI infrastructure.
    And this CAL is an additive CAL, which means that in addition to a Windows Server CAL, customers must acquire a Windows Server RDS CAL for each user or device that:
    - Directly or indirectly accesses any of the RDS product functionality, and/or
    - Directly or indirectly interacts with the graphical user interface of the server software using RDS functionality or other third-party technology
    For example, to access RDS functionality in Windows Server 2012 R2, Windows Server 2012 CALs and Windows Server 2012 RDS CALs are required along with the server software licenses."

  • What version of NeoOffice is needed for Yosemite?

    What version of NeoOffice is needed for Yosemite?  I have NeoOffice version 3.3.  Will it run correctly on Yosemite?

    According to RoaringApps compatibility table, it will.
    Personally I gave up on NeoOffice a couple of version back on OS X and started using LibreOffice instead. I found it to be far superior to NeoOffice.

  • What type of disc is used for backing up itunes

    What type of disc is used for backing up itunes?

    You can backup your itunes library to whatever medium you like ( cd/dvd/flash drive/external drive/etc)

  • What charging adapters do I need for Finland and England

    What charging adapters do I need for Finland and England

    Bring the power adapter that you got with your phone - you just need to get an adapter for the plug into the wall. You don't need a converter.
    Airports usually sell the adapters and stores that sell luggage often have them also.
    ~Lyssa

  • What AC adapter do I need for the Sat Pro A30?

    What AC adapter do i need for the Satellite pro A30, it will not charge and as it has a loose connection on the plug.

    Hi,
    in the specs I found this:
    up to CPU 2.8GHz PA3165U/E-1ACA Autosensing AC Adaptor - 0.52kg - 90W - 100~240V 50/60Hz (Universal) - DC 19V 4.74A -- over 2.8GHz PA3290U 120W
    Bye

  • What version of JDeveloper I need for Oracle Portal portlets

    What version of JDeveloper I need for building Portlets who work
    on Oracle Portal????
    Thanks

    Aparently only up to 10.1.2 is supported. :(

  • What version of JDeveloper I need for Oracle Portal portals

    What version of JDeveloper I need for building Portlets who work
    on Oracle Portal????
    Thanks

    Aparently only up to 10.1.2 is supported. :(

  • What type of software is needed to edit Microsoft based doc,ppt,exl , etc on the iPad 2

    What type of software is needed to edit Microsoft based doc,ppt,exl , etc on the iPad 2

    I just opened Word and Excel files (technical documents) that were emailed to me in Pages and Numbers, respectively. The Word document was just fine regarding the text but the tables were garbled because merged cells in the original were not merged. I couldn't see any formatting problems with a detailed spreadsheet.
    If you're editing a text document you probably won't have any problems on the iPad; if there are tables or images/graphics, you can expect formatting issues about half the time. (I also deal with a lot of graphics intensive Word files from students on my laptop and have a similar incidence of formatting issues. But most of these documents I just have to read and understand, so I don't care if there are formatting issues.))
    I've had similar experiences with PowerPoint/Keynote translations. If it's a basic presentation with common fonts, things are very smooth; if not--there can be some formatting issues.
    Bottom line: if I just have to edit basic content, I wouldn't hesitate to do that on my iPad. If the formatting is crucial, I'll wait until I have access to my laptop which has Office.

  • What plugins, software do I need for Wacom STU-300 signature pad to sign pdf?

    What plugins, software do I need for Wacom STU-300 signature pad to sign a pdf?

    This isn't the correct forum for this topic, but I may be
    able to get you started...
    The licensing restrictions on gathering form data from PDFs
    is outlined in the EULA for Reader, I believe there is a limit of
    500 copies, but I could be wrong ... you should look at the EULA to
    be sure.
    Beyond that, try posting to the
    Acrobat
    Forums or contacting a sales rep at Adobe, they may be able to
    advise you further.

  • What kind of document i need for register  iOS Developer Enterprise Program ?

    What kind of document i need for register  iOS Developer Enterprise Program ?

    Wond,
    I have full access(SAP_ALL) on BI. What kind of Authorization on R/3 system to extract the data?
    Thanks,

Maybe you are looking for

  • Smartforms

    hi experts, i want to display all items of customer means open and closed items. but on which condition we will display. reward points.

  • Unable to Extend The Tablespace through Brtools

    Hello Guru's In Our Production Server we are not able to extend table space through BRtools while performing table space extend i am facing this error, please give me the solution so that this error is going to rectified i am attaching the log for yo

  • Maximun size for  a datafile

    Hi, Oracle Version :10.2.0.1 Operating system:Linux Can any please tell me what is the maximum size that a datafile can grow and the maximum size for tablespace. Here i am having one tablespace which is having 4 datafile in that 2 datafile are 33 gb

  • Downloaded oracle 10g license for 30days

    i have downloaded a oracle 10g from oracle website, but i found that it can only be used for 30days, i am just a student, i just want to learn it. does anyone know what will happened after 30 days? how long can i use? what is the technical difference

  • I upgraded to Yosemite now my office for mac 2011 will not work

    HELP!!!!  Everything was fine until I upgraded.  I really need my office products and I realy dont feel like buying a new laptop (although, I guess I *could* use one ) My specs: Late 2010 MacBook Air (13") - 2.13 GHz Intel Core 2 Duo Here is the erro