[ TDx_Draw ]
[ next: EnumDisplayModes() ]
[ prev: Destroy() ]
public:
virtual bool __fastcall DuplicateSurface( TDx_DrawSurface* pSurface, TDx_DrawSurface* pDupSurface );
If you would like to submit additions or improvements to this page, click: admin@bcb-tools.com.
DESCRIPTION
Top
Parameters
See Also
The
TDx_Draw::DuplicateSurface
method
will
duplicate
an
existing
surface.
The
new
surface
will
reference
the
same
surface
memory
as
the
existing
surface
and
function
in
an
identical
manner
to
the
original.
The
surface
memory
will
be
released
when
there
is
no
longer
anything
referencing
it.
Primary,
3-D
or
implicitly
created
surfaces
cannot
be
duplicated.
If
the
method
call
fails,
the
OnError
event
will
be
triggered
with
one
of
the
following
values:
DDERR_CANTDUPLICATE
DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS
DDERR_OUTOFMEMORY
DDERR_SURFACELOST
PARAMETERS
Top
See Also
Surface
The Surface parameter references an existing surface that is to be duplicated.
DupSurface
The DupSurface parameter will reference the duplicate surface if this method returns successfully.
SEE ALSO
Top
Parameters