FbWidth | 83
FbWidth
Purpose Use
FbWidth
to get the width of the framebuffer.
Syntax
DLong (*FbWidth) (dev)
Return value Width in pixels of the visible portion of the framebuffer.
Description
FbWidth()
returns the width, in pixels, of the visible portion
of the framebuffer.
Access to locations beyond the visible portion of the frame-
buffer is reserved. To get the number of bits per pixel, use
the
BitsPerPixel()
member function (page 87) of the
device handle.
Errors None.
Example This example returns the width of the framebuffer.
#include "domeMd.h"
DMdDev
dev;
DLong
fbWidth;
.
.
.
fbWidth = (*dev->FbWidth) (dev);
See also
FbSize, FbHeight, FbPitch, BitsPerPixel,
DMdDev Structure
Parameter Type
Name
Description
DMdDev
dev
Device handle of the DOME device
Содержание Dome DX/PCI
Страница 6: ......