Quartz 2Dã¾ããã®APIã使ãï¼UIImageããCGImageRefãçµç±ãã¦ãã¯ã»ã«ã®å¤ãåå¾ãããã¨ãã§ããï¼ UIImage* source = [UIImage imageNamed:@"image.png"]; CGImageRef inputImage = [source CGImage]; ããã§CGImageã®ãã¤ã³ã¿ãåå¾ã§ããï¼CGImageããã¯ï¼CGImageGetDataProviderã¨CFDataGetBytePtrã使ãï¼ãã¯ã»ã«ã®å¤ããã¯ã»ã«ã®ãã¼ã¿ãµã¤ãºï¼1è¡ãã¨ã®ãã¤ããµã¤ãºãªã©ãåå¾ã§ããï¼ CFDataRef inputData = CGDataProviderCopyData(CGImageGetDataProvider(inputImageRef)); unsigned char *pixelData = (unsigned char
{{#tags}}- {{label}}
{{/tags}}