From Xojo Documentation

Revision as of 14:22, 19 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Shared Method

iOSImage.FromData(data As Xojo.Core.MemoryBlock) As iOSImage

Supported on Mobile (iOS).

Creates an image from data in a MemoryBlock.

Sample Code

Create an image from image data stored in a database field:

Var photo As iOSImage
photo = iOSImage.FromData(customerRecordSet.Field("Photo").NativeValue)