D3DX8.LoadVolumeFromVolume
Loads a volume from another volume.
object.LoadVolumeFromVolume( _
DestVolume As Direct3DVolume8, _
DestPalette As Any, _
DestBox As Any, _
SrcVolume As Direct3DVolume8, _
SrcPalette As Any, _
SrcBox As Any, _
Filter As Long, _
ColorKey As Long)
Parts
- object
- Object expression that resolves to a D3DX8 object.
- DestVolume
- Direct3DVolume8 object. Specifies the destination volume, which receives the image.
- DestPalette
- The first element of an array of 256 PALETTEENTRY types, representing the destination palette, or ByVal 0. See Remarks.
- DestBox
- D3DBOX type. Specifies the destination box. Set this parameter to ByVal 0 to specify the entire volume.
- SrcVolume
- Direct3DVolume8 object. Specifies the source volume.
- SrcPalette
- The first element of an array of 256 PALETTEENTRY types, representing the source palette, or ByVal 0.
- SrcBox
- D3DBOX type. Specifies the source box. Set this parameter to ByVal 0 to specify the entire volume.
- Filter
- A combination of one or more filter flags defined by the CONST_D3DXENUM enumeration, controlling how the image is filtered. Specifying D3DX_DEFAULT for this parameter is the equivalent of specifying D3DX_FILTER_DITHER Or D3DX_FILTER_TRIANGLE.
- ColorKey
- Value to replace with transparent black, or 0 to disable the colorkey. This is always a 32-bit ARGB color, independent of the source image format. Alpha is significant and should usually be set to FF for opaque colorkeys. Thus, for opaque black, the value would be equal to &HFF000000.
Error Codes
If the method fails, an error is raised and Err.Number can be set to one of the following values.
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
Remarks
For more information on PALETTEENTRY see the Microsoft Platform Software Development Kit (SDK). Note that as of Microsoft DirectX® 8.0, the peFlags member of the PALETTEENTRY structure does not work the way it is documented in the Platform SDK. The peFlags member is now the alpha channel for 8-bit palletized formats.