GetInkA
AlphaValue = GetInkA()
 
Parameters: NONE
Returns:

    AlphaValue = The current Alpha value from the current graphics INK colour.
 

     GetInkA returns the ALPHA value from the current Ink Colour. This value will range between 0 and 255.



FACTS:


      * While the Ink Colour is 32bit packed value, containing the A,R,G,B channels. PB doesn't generally use the Alpha value from the Ink colour, with one key exception, and that's when using Compressed Raster Fonts. Alpha Level for most functions in PB is controlled using the InkAlpha and InkMode commands.




Mini Tutorial:


      This example shows how to set the current Ink colour, read it then R,G,B back directly.

  
  
; Set the INK colour
  Ink RGB(200,50,100)
  
; Set the INK colour
  Ink RGB(200,50,100)
  
; Display the A,R,G,B values of this colour
  Print "Current Ink Colour A is:"+Str$(GetInkA())
  Print "Current Ink Colour R is:"+Str$(GetInkR())
  Print "Current Ink Colour G is:"+Str$(GetInkG())
  Print "Current Ink Colour B is:"+Str$(GetInkB())
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  




This example would output.

  
  Current Ink Colour A is:0
  Current Ink Colour R is:200
  Current Ink Colour G is:50
  Current Ink Colour B is:100
  

 
Related Info: GetInk | GetInkB | GetInkG | GetInkR | Ink :
 


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