Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides
New in version: 5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2    Statistic  

DynaPDF.SetAlpha

Sets alpha for drawings.

Component: DynaPDF
Version: 3.1
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "DynaPDF.SetAlpha"; PDF; FillAlpha; StrokeAlpha )

Parameters

Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
FillAlpha The new alpha between 0.0 and 1.0. Value of -1 will not change fill alpha. 0.5
StrokeAlpha The new alpha between 0.0 and 1.0. Value of -1 will not change stroke alpha. 0.5

Result

Returns OK or error message.

Description

Sets alpha for drawings.
See also DynaPDF.SaveGraphicState and DynaPDF.RestoreGraphicState.

Examples

Make all drawings 50% transparent:

MBS( "DynaPDF.SetAlpha"; $PDF; 0.5; 0.5 )

Make just lines 50% transparent and don't change fill transparency:

MBS( "DynaPDF.SetAlpha"; $PDF; -1; 0.5 )

Make fill transparency 50%, so images draw half transparent:

MBS( "DynaPDF.SetAlpha"; $PDF; 0.5; -1 )

See also


DynaPDF.ScaleCoords   -   DynaPDF.SetAnnotBorderStyle

Feedback: Report problem or ask question.




Links
MBS Real Studio Chart Plugins - Pfarrgemeinde Ministranten Nickenich