Fat fat insects About the graphic image of Delphi is a summary

zhaozj2021-02-16  157

Graphical size

Although inserted images (especially uncompressed BMP) can result in running files, the installation package obtained by InstallShield will automatically compress, so it is generally not worried about whether it is compressed.

About transparency

After observation, some graphic buttons in Delphi have a bitmap that it will automatically become transparent. It seems to do this: Any pixel point that is the same as the color of the first pixel is set to? Transparent color? .

2003.7.28: Tbitmap's TransparentMode property description, if this property is set to Auto: TMAUTO, the color of the first pixel in the lower left corner of the bitmap is a mask base.

Tbitmap

Tips: Use the EMPTY attribute to determine if there is a bitmap.

Graphics can be graphically drawn by its Canvas object properties to change the appearance of the graphic. Even if Tbitmap does not contain graphics, you can add a graphic to it by setting the Height and Width properties and the Canvas's drawing method.

Calling LoadFromResourceName, LoadFromFile, etc. After getting a graphic failure will trigger an exception.

Its Palette palette property indicates that the palette supports 256 colors, but the Tbitmap itself can be found in actual use, which can display a bitmap of more colors (e.g., RGB), and what is related to the association and restrictions are not clear.

TPICTURE

Tips: You can generate an iPictureDISP interface object with the GetoLEPICTure function.

Skin control

Tested, the THEMEENGINE control package is poor, and the speed is affected. The businessskin package is better compatible. When the controls in the form are changed to the business class control, the Update Resource DLL is called, and the DFM in the relevant language is automatically changed.

Conclusion: Try not to use skin controls, if you do need, you should use businessskin.

2004-3-24

: Discovery Businessskin also has some problems that are difficult to overcome. Skin control should not be used again, using DXForumlibrary.

转载请注明原文地址:https://www.9cbs.com/read-8762.html

New Post(0)