Results 1 to 2 of 2
  1. #1
    hyz_zsu is offline Member
    Join Date
    Apr 2009
    Posts
    4
    Rep Power
    0

    Question How to read the raw data from TYPE_BYTE_BINARY BufferedImage

    Hi all, I want to read the data from a binary image, which is readed by BufferedImage. I want to read the data into a matrix. Do
    int array[] = raster.getPiexls(0,0,w,h,array) can read the binary data out?
    Last edited by hyz_zsu; 04-05-2009 at 06:48 AM.

  2. #2
    hyz_zsu is offline Member
    Join Date
    Apr 2009
    Posts
    4
    Rep Power
    0

    Default

    I found that the getPixels can get the binary data into a int array, which one pixel occupy one element.:D

Similar Threads

  1. Need a solution to read and store data from a file
    By sheetalnri in forum New To Java
    Replies: 10
    Last Post: 09-30-2010, 07:43 AM
  2. Unable to read data from inputstream
    By renuka_anil in forum Java Servlet
    Replies: 0
    Last Post: 01-29-2009, 04:20 PM
  3. Data files - how to read random line?
    By Exhonour in forum New To Java
    Replies: 4
    Last Post: 01-20-2009, 09:28 PM
  4. How to read data from excel and store it in db
    By saran123 in forum New To Java
    Replies: 5
    Last Post: 10-03-2008, 11:19 AM
  5. Replies: 0
    Last Post: 04-17-2008, 08:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •