...
PadLeft - Calculate a Left Padding value to horizontally align a database image to center or right. To align right change CenterImage parameter to False.
Code Block PadLeft(imgBytes As Byte(), cellWidth As Double, cellHeight As Double, Optional UnitOfMeasure As String = "in", Optional CenterImage As Boolean = True) As String
PadTop - Calculate a Top Padding value to vertically align a database image to center or bottom. To align bottom change CenterImage parameter to False.
Code Block PadTop(imgBytes As Byte(), cellWidth As Double, cellHeight As Double, Optional UnitOfMeasure As String = "in", Optional CenterImage As Boolean = True) As String
QRCode - Generate a QRCode image as a byte array to display in an Image object.
Code Block QRCode(content As String, size As Integer, Optional logofilepath As String = "", Optional IsURL As Boolean = False, Optional darkcolor As String = "", Optional lightcolor As String = "") As Byte()
The following overload accepts a logo image in a byte array instead of a logo filepath
Code Block QRCode(content As String, size As Integer, logobytes As Byte(), Optional IsURL As Boolean = False, Optional darkcolor As String = "", Optional lightcolor As String = "") As Byte()
See the following explanation for each of the arguments
content = Text content of the QRCode
size = Size of image in pixels. 20 is the recommended size, large Pixels per module. Large values here can cause out-of-memory errors from the report viewer.
logofilepath = Filepath to a logo to embed in the center of the QR Code (example: C:\\myimage.png)
logobytes = Byte array of logo to embed in the center of the QR Code. This can be an image field from a dataset (example: Fields!Logo.Value)
IsURL = True if the content is a web URL to format the QR Code as a URL Payload
darkcolor = Dark color in the QR Code (examples: “black”, “255,255,255”)
lightcolor = Light color in the QR Code (examples: “white”, “0,0,0”)
Example
Expression (Value property on an Image with Source set to Database)
Code Block language none =Code.QRCode("www.crowsnestsoftware.com", 20, "", True, "Red", "White")
Code
Code Block language none Function QRCode(content as String, size as Integer, logobytes as Byte(), Optional IsUrl as Boolean = False, Optional darkcolor as String = "", Optional lightcolor as String = "") Return CrowsNest.Reporting.Images.QRCode(content, size, logobytes, IsURL, darkcolor, lightcolor) End Function
...