Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

IconStringToPictMBS(icon as String, bitDepth as Integer, size as Integer) as Picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Icon Service MBS Util Plugin Yes No Yes No No
Function: Converts an icon into a Picture so that you can display it within the REALbasic environment.
Example:
dim icondata as string
dim p as Picture

p=IconStringToPictMBS(icondata, 8, 32)
Notes:
To see how it is used, look at the method DisplayTheFileIcon in the included REALbasic demo project.
Currently this function only creates a Picture from the Icon's Image, and does not consider the Icon Mask. The Mask is always right behind the Icon Image, in case you want to get that, too.
Size is the width and height of the icon which must be equal. If you need something other, please ask.

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Util Plugin.




Links
MBS FileMaker Plugins