From Xojo Documentation

Revision as of 19:11, 2 December 2015 by PLefebvre (talk | contribs) (Created page with "<ShowIf version=2015r4> {{MethodBox | name= BitmapForCaching | owner=Window | ownertype=class | scope=public | parameters=width As Integer, height As Integer | platform=al...")
(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!


Window.BitmapForCaching(width As Integer, height As Integer)

Supported for all project types and targets.

Returns a bitmap that is configured correctly for using as a cache for content to be drawn to this Window.


Raises exceptions in the following cases:

  • InvalidArgumentException if width, height, or scale are less than or equal to zero
  • OutOfMemoryException if the picture could not be allocated