Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 03-08-2010, 01:02 AM   #36 (permalink)
rahul
Registered Member
 
Join Date: Jun 2009
Posts: 19
rahul is on a distinguished road
Default

Quote:
Originally Posted by rocotilos View Post
Hello rahul, the codes all assumes the image has ARGB format.

ie
index = alpha channel
index+1 = red channel
index+2 = green channel
index+3 = blue channel.

this normally is true for PNG images. But, in case of other formats, you need to cater for it.

my advise is pre-process your loaded images into png first (and scale it down a bit).

HTH.
Thanks a lot Rocotilos, Image that i was using is in BGR format. so i changed code accordingly. Now when i tried to use another image(i.e. bmp file), code doesn't work properly.

Can you tell me how to convert any image of any format to Png(ARGB) format?

Thanks in advance
rahul is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,536
Threads: 94,052
Posts: 402,640
Top Poster: BrianSlick (7,979)
Welcome to our newest member, bppnormal11
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:03 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.