Generic FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 9.0
Unrevised from 8.2 to 9.0.
8.2 version

get-texture-info

Arguments: bitmap-pane-or-bitmap-stream &optional texture-info

This function returns a texture-info with information about bitmap-window-or-pane's width, height, and bits-per-pixel.

Note that the argument list has changed in release 7.0. Previously, the first argument was a stream, and the second specified the bitmap-pane or bitmap-stream of interest. The now-removed stream argument was in fact unused. All calls to the function written for earlier releases must be changed. The arguments now are:

bitmap-pane-or-bitmap-stream a bitmap-pane or a bitmap-stream about whose memory bitmap you would like to know the width, height, or bits-per-pixel.

texture-info a texture-info that you can pass to avoid consing a new one each time; if you pass a texture-info, get-texture-info fills in its fields; if you pass nil or do not specify this argument, a new texture-info is created.

Note that the texture-info as returned by this function does not include the colormap used by bitmap-pane-or-bitmap-stream. If you need the colormap included (as you do, for example, when you pass a texture-info to save-pixmap), use the texture-info returned as the second value by the slower function get-texture.


Copyright (c) 1998-2012, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 9.0. This page was not revised from the 8.2 page.
Created 2012.5.30.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 9.0
Unrevised from 8.2 to 9.0.
8.2 version