Mmio functions are used for I/O operations on multimedia files such as wave. The related functions include:
Mmioopenmmioclosemmioreadmmiowritemmioflushmmioseekmmiorenamemmiogetinfommiosetinfommiocreatechunkmmioascendmmiodescendmmioadva
Recently, I suddenly felt that Delphi's dynamic array is very useful. Using It can omit a lot of getmem and reallocmem, And it is automatically maintained.
The dynamic array variable arr itself is a pointer and cannot be obtained with @ arr;
The compilation command pointermath is off by default. After it is enabled, you can read and write the series of data in the pointer like an array, which is very convenient!
// test the integer pointer procedure tform1.button1click (Sender:
This interface has only two units: gdiplus and gdiplushelpers. gdiplushelpers is mainly used to add togpgraphics to TCanvas, tgraphiccontrol, tcustomcontrol, and tbitmap In The VCL system through the Helper technology, igpgraphics.
In many cases,
Tgpcolor is the color subject of gdiplus. Although it is a struct, methods and attributes are readily available like classes.
I don't think it is defined as a class or interface. I think it mainly needs to be implicitly converted with an integer,
The create method of the tgptexturebrush class corresponding to igptexturebrush has many heavy loads.
The parameters can contain tgpwrapmode and igpimageattributes, but the test shows that igpimageattributes is not useful here.
It makes sense to
Multi-color gradient: A "color array" and a "location array" (ratio between 0 and 1 );
The igplineargradientbrush. interpolationcolors attribute corresponds to an igpcolorblend object, which is used to load the above two arrays.
The colors and
The gammacorrection attribute is a Boolean value. The default value is false. If it is set to true, Grayscale Correction is enabled.
The second image in the test diagram uses Grayscale Correction:
TestCode:
Uses gdiplus; Procedure tform1
Setblendbellshape: Create a gradient transition process based on the bell curve;
Setblendtriangularshape: Creates a linear gradient process that linearly transitions from the center color to a single color at both ends.
The two methods seem to
Linearcolors // attribute; gets or sets the start and end colors of the gradient. rectangle // attribute; obtain the rectangular area that defines the starting point and ending point of the gradient. wrapmode // attribute; obtain or set the wrapmode
The simplest igppathgradientbrush is a gradient with a central color and a set of peripheral colors.
The attributes of centercolor, surroundcolors, and setsurroundcolors are involved here.
Test 1:
Test 1Code:
//
The first construction method: tgplineargradientbrush. Create (point 1, point 2, color 1, color 2 );
Test in this example:
To facilitate testing, units in unit2 inherit a tmyshape class from tshape to simulate an active
Igpcolors is an interface that applies generic arrays to tgpcolor. It can be used when a set of colors is required. Of course, it is not difficult to use other methods. It is not important in the whole system.
In this example, the 141 color
Use the window to receive messages from the audio device:
Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) button1: tbutton; button2: tbutton;
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service