iphone Programming Glossary: bpl
iPhone SDK: accessing indexed color PNG images http://stackoverflow.com/questions/3251595/iphone-sdk-accessing-indexed-color-png-images if rawbuf printf rawbuf failed n nsdata getBytes rawbuf int w CGImageGetWidth img int h CGImageGetHeight img int bpl CGImageGetBytesPerRow img printf width d d bpl height d pixels d bytes d n w bpl h bpl h nsdata length if nsdata length.. rawbuf int w CGImageGetWidth img int h CGImageGetHeight img int bpl CGImageGetBytesPerRow img printf width d d bpl height d pixels d bytes d n w bpl h bpl h nsdata length if nsdata length bpl h printf d pixels is not d bytes i may be crashing.. img int h CGImageGetHeight img int bpl CGImageGetBytesPerRow img printf width d d bpl height d pixels d bytes d n w bpl h bpl h nsdata length if nsdata length bpl h printf d pixels is not d bytes i may be crashing now... n bpl h nsdata length..
|