ImageMakeWithPixels

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
image of size <mSize> with pixels <mPixels>
Associationscom.livecode.canvas
Summary

Creates a new image using raw pixel data.

Parameters
NameTypeDescription
mSize

An expression which evaluates to a list of integers.

mPixels

An expression which evaluates to binary data

Example
// Read pixel data from file
variable tPixelData as Data
put the contents of file "image_argb_320x480.bin" into tPixelData

// Create image from pixel data
variable tImage as Image
put image of size [320, 480] with pixels tPixelData into tImage
Values
NameTypeDescription
return

A new image of the given size, using the provided ARGB pixel data.

Description

Creates a new image using raw pixel data.

Tagscanvas