GetActualSize Method

Navigation:  Reference Guide > Methods >

GetActualSize Method

Previous pageReturn to chapter overviewNext page

Gets the actual size of the QRCode barcode which is rendered onto either computer screen or other devices such as printers.

[Visual Basic .NET]

Public Sub GetActualSize(ByVal ScreenIsTarget As Boolean, _

                                       ByVal TargetG As Graphics, _

                                       ByRef ActualWidth As Integer, _

                                       ByRef ActualHeight As Integer)

[C#]

public void GetActualSize(bool ScreenIsTarget,

                                      Graphics TargetG,

                                      ref int ActualWidth,

                                      ref int ActualHeight);

Parameters

ScreenIsTarget

Indicates whether the QRCode barcode is rendered onto computer screen or not.

TargetG

Graphics object to be used for rendering, if the parameter ScreenIsTarget is set to TRUE, set this parameter to NULL.

ActualWidth

A pointer to the variable that receives the width of the QRCode barcode (in pixels).

ActualHeight

A pointer to the variable that receives the height of the QRCode barcode (in pixels).