LBitmapWindow::EnablePaintSizeUseDPI

Summary

Enables or disables bitmap painting using the DPI settings.

Syntax

#include "ltwrappr.h"

L_BOOL LBitmapWindow::EnablePaintSizeUseDPI(bPaintSizeUseDPI)

Parameters

L_BOOL bPaintSizeUseDPI

Flag that indicates whether to paint the bitmap using the DPI settings. Possible values are:

Value Meaning
TRUE Paint the bitmap using its DPI settings.
FALSE Paint the bitmap using the bitmaps original height and width.

Returns

The previous state.

Comments

If enabled, the bitmap window will account for the physical resolution of the bitmap when displaying it.

The physical resolution of a bitmap is measured in dots per inch (DPI). Some images have different horizontal and vertical resolutions (for example: 300 by 600). In such cases, the displayed images will appear elongated if you do not account for the resolution.

This setting is disabled by default.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Example

For an example, refer to LBitmapWindow::SetROP3.

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.