GrayScaleImage
GrayScaleImage ImageNumber
 
Parameters:

    ImageNumber = The identifier of this image
Returns: NONE
 

     GrayScaleImage converts the coloured pixels in an image to gray scale (black and white)



FACTS:


      * GrayScaleImage changes the pixel data in the image, which can not be reversed.


 
Example Source: Download This Example
; Load a screen shot of who frame waldo
  MyImage = LoadNewImage("..\../Media/Who-Framed-Waldo.jpg",2)
  
; Clear the Screen to a bright blue colour
  Cls RGB(0,0,255)
  
; Draw our previously created image to the screen
  DrawImage MyImage,0,0,0
  
; Convert this image to black and white
  GrayScaleImage MyImage
  
; Now Render the newly faded image to the screen, bellow the original.
  DrawImage MyImage,400,0,0
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKe
 
Related Info: BlurImage | FadeImage | LightImage | RenderPhongImage | RGBMaskImage :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com