Grayscale image: Difference between revisions

m (syntax highlighting fixup automation)
Line 965:
 
void local fn BuildWindow
 
CGRect r = fn CGRectMake( 0, 0, 580, 300 )
window _window, @"Color to Grayscale", r
Line 977 ⟶ 976:
 
local fn GrayscaleImage( image as ImageRef ) as ImageRef
'~'1
CGSize size = fn ImageSize( image )
CGRect bounds = fn CGRectMake( 0, 0, size.width, size.height )
Line 1,002 ⟶ 1,000:
HandleEvents
</syntaxhighlight>
{{output}}
 
[[File:Color to Grayscale.png]]
 
 
 
 
=={{header|Go}}==
729

edits