NNTP-Posting-Date: Wed, 08 May 2013 12:40:48 -0500 Date: Wed, 08 May 2013 18:40:47 +0100 From: lipska the kat <"nospam at neversurrender dot co dot uk"> Organization: Trollbusters 3 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: How to convert image into Hex 2 Dimensional Array? References: <41718873-b1a6-4b97-bbbb-8002c48d4e29@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Lines: 27 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-4a2lzZzZqaT+i0gITzdXfMuWpx9TivTwnEFY2uBMWsjRt3iRgyabFr4WH83dideLNQ6CwQ4rWdxrJn1!/R9EdlbM+kWK7hJDtJbFv4XYo8POvozFg4pByUrvQXbj03HukNVGwI28lIBOBLaU/PG+wTpMZWI= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2208 Path: csiph.com!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail Xref: csiph.com comp.lang.java.programmer:23940 On 08/05/13 17:52, Joshua Cranmer 🐧 wrote: > On 5/8/2013 1:30 AM, sout saret wrote: >> Dear Community! >> >> May you help me how to write code in java to convert image to Hex 2 >> dimensional array. I want to show format as below: > > What format is this two-dimensional array? Looking from your code, you > appear to want it to be some sort of 256-byte pixel value, but are you > desiring: > 1. 8-bit ARGB > 2. 5-6-5 RGB > 3. 8-bit grayscale > 4. 32-bit ARGB > 5. 24-bit RGB > 6. Binary version of any widely-used image format, including but not > limited to PNG, BMP, GIF, JPG, XBM, TIF, and ICO. I think he wants a byte for byte copy so the first byte gets copied into [0][0] the next into [1][0] the next [2][0] etc until [width-1][0] then start again at [0][1], [1][1], [2][1] etc etc lipska -- Lipska the Kat©: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun