I'm guessing, but I think it might be that you are copying 2 rows of data each time, so
int bitsPerComponent = 8; int bytesPerRow = srcRectangle.Width * bytesPerPixel *2; should not have the *2 on the end. From the images, it looks like you are copying the first 2 lines, and making them into _1_ line in the output. What happens if you debug it? If the input is 12 bit, is that 12 bits per color part (R/G/B?) or 12 bits total - 4 bits per color part? On Wed, Aug 8, 2012 at 4:49 PM, pritish <[email protected]> wrote: > Sorry Nic Your solution I tried but it is not working it gives me O/P > > > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/How-to-display-12-bit-images-in-UIImageView-tp4656427p4656435.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/ 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 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 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
