Difference between revisions of "VS:GetPenFore"

From Vectorworks Developer
Jump to: navigation, search
m (1 revision)
 
Line 53: Line 53:
 
==== Python ====
 
==== Python ====
 
<code lang="py">
 
<code lang="py">
redValue,greenValue,blueValue = vs.GetPenFore(handleToObject)
+
red_value, green_value, blue_value = vs.GetPenFore(handleToObject)
 
</code>
 
</code>
 
</sample>
 
</sample>
  
 
-----------------------------------------------------------------------------------------------------------
 
-----------------------------------------------------------------------------------------------------------
 +
 
<seeAlso>
 
<seeAlso>
VS Functions:
+
VS Functions: [[VS:ColorIndexToRGB]] | [[VS:RGBToColorIndex]] | [[VS:GetPenBack]] | [[VS:GetFillFore]] | [[VS:GetFillBack]]
[[VS:ColorIndexToRGB]]  
+
| [[VS:RGBToColorIndex]]  
+
 
</seeAlso>
 
</seeAlso>
  

Latest revision as of 06:09, 14 October 2021

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix


Description

Procedure GetPenFore returns the pen foreground color components of the referenced object. RGB values are in the range of 0~65535.
PROCEDURE GetPenFore(
h  :HANDLE;
VAR red  :LONGINT;
VAR green  :LONGINT;
VAR blue  :LONGINT);
def vs.GetPenFore(h):
    return (red, green, blue)

Parameters

h HANDLE Handle to object.
red LONGINT Returns RGB color component value.
green LONGINT Returns RGB color component value.
blue LONGINT Returns RGB color component value.

Example

VectorScript

GetPenFore(handleToObject,redValue,greenValue,blueValue);

Python

red_value, green_value, blue_value = vs.GetPenFore(handleToObject)

Version

Availability: from MiniCAD6.0

See Also

VS Functions: VS:ColorIndexToRGB | VS:RGBToColorIndex | VS:GetPenBack | VS:GetFillFore | VS:GetFillBack
VS Functions: [[VS:ColorIndexToRGB]] | [[VS:RGBToColorIndex]] | [[VS:GetPenBack]] | [[VS:GetFillFore]] | [[VS:GetFillBack]]
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox