Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 24th, 2012  |  syntax: None  |  size: 0.48 KB  |  hits: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to load 16 bits images with UIImage?
  2. CGDataProviderRef imgDataProvider = CGDataProviderCreateWithCFData((CFDataRef)[NSData dataWithContentsOfFile:@"some_file.png"]);
  3.        
  4. CGImageRef CGImageCreate (
  5.    size_t width,
  6.    size_t height,
  7.    size_t bitsPerComponent,
  8.    size_t bitsPerPixel,
  9.    size_t bytesPerRow,
  10.    CGColorSpaceRef colorspace,
  11.    CGBitmapInfo bitmapInfo,
  12.    CGDataProviderRef provider,
  13.    const CGFloat decode[],
  14.    bool shouldInterpolate,
  15.    CGColorRenderingIntent intent
  16. );