Swift ã§ç»åã®ãã¯ã»ã«ãæä½ãããã¨ããã¨é¢åã§ãããï¼å¤§æµ CoreGraphics ã使ããã¨ã«ãªãããã§ããã API 㯠C ã§æ¸ããã¦ãã¦å¤ããããã©ã¼ãããã¯è²ã ããããã¡ã¢ãªããã¸ã¡ã³ãã¯è¦çã ããç»åã®ãã¯ã»ã«ã«ã¡ãã£ã¨ã¢ã¯ã»ã¹ãããã ããªã®ã«ãããããã¦ãã¾ãã¾ãã ããã§ã Swift ã§ç»åãç°¡åã«ãã¤ãããããã«ããã©ã¤ãã©ãª EasyImagy ãä½ãã¾ããã var image = Image(named: "ImageName")! // ãã¯ã»ã«ã®ã¢ã¯ã»ã¹ println(image[y][x]) // `image[x, y]` ãå¯ image[y][x] = Pixel(red: 255, green: 0, blue: 0, alpha: 255) // å ¨ãã¯ã»ã«ãã¤ãã¬ã¼ã for pixel in image { ... } // ç»åã®
{{#tags}}- {{label}}
{{/tags}}