RLE is just an encoding mechanism, so you are going to have to find a
reader for it (.net? obj-c? how did you get the file in the first
place) and covert it.

Saying "I need a reader for RLE" is like saying "I need to load this
compressed file", "whats the format? zip? arc? gzip?", "I dont know -
its a compressed file. I just need to load it"

http://www.fileformat.info/mirror/egff/ch09_03.htm

basically, if you have:

AAAABBBB

it can be encoded as

4A4B which is a 50% reduction in size. Obviously, this is a serious
simplification :)

But how it's encoded (RGB? 256-color pallet? You were dealing with
medical images, from memory, so maybe 16bit grey scale??) depends on
what wrote it.

Feel free to upload a copy of one somewhere, someone may know if it
has some nice identifiers in it to find out the format. Most formats
have a magic number / string at the start which tells you what it is.

If there is no way to convert it, but you can read it, you may need to
use a UIImage or CoreGraphics to draw it pixel by pixel (which is
going to be SLOW I suspect), then save it off using UIImage into a
JPG/PNG/whatever.

better yet, if you can tell whatever is generating it to generate a
PNG (which is lossless, as opposed to JPEG which is can lose data in
exchange for compression), then you are good to go.

On Mon, Jun 11, 2012 at 1:17 PM, pritish
<[email protected]> wrote:
> can you provide some demo example over it.
>
> --
> View this message in context: 
> http://monotouch.2284126.n4.nabble.com/Error-this-UIImage-LoadFromData-data-returns-null-tp4655276p4655296.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to