From Xojo Documentation

Revision as of 19:33, 20 August 2018 by PLefebvre (talk | contribs) (Created page with "{{SharedMethodBox | name = FromData | ownertype = class | scope = public | parameters = data As Xojo.Core.MemoryBlock | owner = iOSImage | returntype = iOSImage |...")
(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:

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