Hi guys,
I would like to change images from colored to black and white.
Here's what I've done:
setbuffer imagebuffer(im)
for x=0 to imagewidth(im)
for y=0 to imageheight(im)
getcolor x,y
c=(colorred()+colorgreen()+colorblue())/3
color c,c,c
plot x,y
next
next
But it's slow expecially for big images.
Is there a quicker way?
Thank you
I would like to change images from colored to black and white.
Here's what I've done:
setbuffer imagebuffer(im)
for x=0 to imagewidth(im)
for y=0 to imageheight(im)
getcolor x,y
c=(colorred()+colorgreen()+colorblue())/3
color c,c,c
plot x,y
next
next
But it's slow expecially for big images.
Is there a quicker way?
Thank you