Picture.RGBSurface

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Read-Only Property (As RGBSurface )
RGBSurfaceValue = aPicture.RGBSurface

Supported for all project types and targets.

Provides pixel-level access to the picture’s bitmap.

Notes

Used only for pictures built with the Picture constructor with no pixel depth or only a depth of 16 or 32, otherwise it returns Nil. Returns an RGBSurface object. Calling RGBSurface is a computer-intensive process. Use it to access individual pixels of the Picture image. It is extremely fast — faster than accessing pixels through the Graphics property.