Новые книги

Продолжение книги "Внутреннее устройство Microsoft Windows" — 5 и 7 главы.
The tutorials start with the most basic Windows program, the windows equivalent of "hello world!", Winnie. Then we move on to a more Generic program, which serves as a skeleton for a simple Windows application. Then we discuss various Controls. Using these controls one can build a complete dialog-based application, whose main window is a dialog. We are then ready to discuss a Generic Dialog, a framework with which one can quickly build specific dialogs.

To do some simple graphics one needs a Canvas object. You use Pens and Brushes to paint on the canvas.

More advanced topics include programming with Threads with a practical example of a Folder Watcher — a program that watches directories for changes.

Modern windows programming requires some knowledge of the Shell API, which leads us to the discussion of OLE and COM. We show how one can encapsulate OLE in C++ to create Smart OLE. OLE is also used in Automation, which lets your application talk to other applications.

Controls are nothing but specialized windows. You can easily create your own controls, as evidenced by the Splitter Bar tutorial.

For graphics programmer, we give a short introduction on using Bitmaps for animation and a more advanced tutorial on using Direct Draw.

imagecolorresolvealpha

Учебник РНР
НазадВперёд

imagecolorresolvealpha

(PHP 4 >= 4.0.6)

imagecolorresolvealpha - получает индекс специфицированного цвета + alpha или его ближайшую возможную альтернативу.

Описание

int imagecolorresolvealpha (resource image, int red, int green, int blue, int alpha)

Эта функция гарантированно возвращает индекс запрашиваемого цвета или его ближайшей возможной альтернативы.

См. также imagecolorclosestalpha().

Примечание: эта функция была введена в PHP 4.0.6 и требует GD 2.0.1.


Назад Оглавление Вперёд
imagecolorresolve Вверхimagecolorset