L_LTIMGSFX_API L_INT L_PlaneBitmap(pBitmap, ptCenterPoint, uZValue, nDistance, uPlaneOffset, nRepeat, nPydAngle, uStretch, uStartBright, uEndBright, uBrightLength, crBright, crFill, uFlags)
Places the bitmap on parallel planes along the Z-axis.
Pointer to the bitmap handle referencing the bitmap to be changed.
POINT structure that contains the point at which the camera or viewer is looking. It may be outside the bitmap borders.
Viewing screen offset on the Z-axis, in pixels.
Camera distance from the viewing screen, in pixels.
Distance between the parallel planes.
Number of times the bitmap repeats along the Z-axis. If nRepeat equals 1 the bitmap will be infinitely repeated. Its range starts from 1.
The view angle, off the Z-axis. This value is given in hundredths of a degree (+/-). This can be a number from 0 to 36,000.
Value that indicates whether to expand or compress the bitmap, and by how much. If uStretch < 100 bitmap will be expanded. If uStretch > 100 the bitmap will be compressed. Use 100 to maintain the bitmap's dimensions. The value of this parameter is internally divided by 100.
Value that indicates the brightness of an external light source on the first bitmap displayed. Possible values range from 0 to 100. A value of 0 indicates no external light displayed on the bitmap. A value of 100 indicates an external light source with full brightness is displayed on the bitmap.
Value that indicates the brightness of an external light source on the last bitmap displayed. Possible values range from 0 to 100. A value of 0 indicates no external light displayed on the bitmap. A value of 100 indicates an external light source with full brightness is displayed on the bitmap.
Value that indicates how much the brightness changes as you move along the Z axis. This parameter is internally multiplied by 50.
The COLORREF value that specifies the color of an external light source that shines on the displayed bitmaps.
The COLORREF value that specifies the background color.
Flags that indicate the background color and the planes to be shown. You can use a bit wise OR (|) to specify one flag from each group. You can use a bit wise OR (|) to specify one flag from each group.
|PLANE_FILL_CLR||[0x0001] Use the
|PLANE_NO_CHG||[0x0002] use the image itself as a background|
|PLANE_LEFT||[0x0010] The plane will be displayed to the left of the Z-axis.|
|PLANE_RIGHT||[0x0020] The plane will be displayed to the right of the Z-axis.|
|PLANE_UP||[0x0040] The plane will be displayed above the Z-axis.|
|PLANE_DOWN||[0x0080] The plane will be displayed below the Z-axis.|
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
This function does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this function.
This function shows the effect of placing bitmaps on planes along the Z-axis. These bitmaps may be placed above, below, to the left or to the right of the Z-axis. An external light source of the specified color and brightness may be shined on the bitmaps. The brightness may vary along the z-axis according to the
ptCenterPoint and the viewing screen Z-offset, you can simulate moving along the axis.
If the bitmap has a region, the effect will be applied on the region dimensions only.
This function supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available in the Document and Medical Imaging toolkits.
To update a status bar or detect a user interrupt during execution of this function, refer to L_SetStatusCallback.
To obtain this effect, the following settings were used with the function:
uZValue = 0
This function does not support 32-bit grayscale images. It returns the error code ERROR_GRAY32_UNSUPPORTED if a 32-bit grayscale image is passed to this function.
Required DLLs and Libraries
BITMAPHANDLE LeadBitmap; /* Bitmap handle for the image */
/* Load a bitmap at its own bits per pixel */
nRet = L_LoadBitmap(MAKE_IMAGE_PATH(TEXT("sample5.cmp")), &LeadBitmap, sizeof(BITMAPHANDLE), 0, ORDER_BGR, NULL, NULL);
/* put the image on left and right parallel planes*/
CenterPt.x = LeadBitmap.Width/2;
CenterPt.y = LeadBitmap. Height/2;
nRet = L_PlaneBitmap(&LeadBitmap, CenterPt, 0, LeadBitmap.Height, LeadBitmap.Width/2, -1,0,25,0,100, 20000, RGB(255,0,0), RGB(0,0,0), PLANE_RIGHT | PLANE_LEFT | PLANE_FILL_CLR);
nRet = L_SaveBitmap(MAKE_IMAGE_PATH(TEXT("Result.BMP")), &LeadBitmap, FILE_BMP, 24, 0, NULL);
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries