System default language and supported language list

Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) memo1: tmemo; button1: tbutton; button2: tbutton; button3: tbutton; button4: tbutton; Procedure

Operate wave files (3): Access mmio Functions

Mmio functions are used for I/O operations on multimedia files such as wave. The related functions include: Mmioopenmmioclosemmioreadmmiowritemmioflushmmioseekmmiorenamemmiogetinfommiosetinfommiocreatechunkmmioascendmmiodescendmmioadva

Two examples of dynamic array pointer operations

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;

{$ Pointermath on} compilation instructions for convenient pointer operations

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:

Gdiplus [3]: gdiplushelpers Unit

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,

Gdiplus [4]: tgpcolor

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,

Gdiplus [10]: construction parameters of igptexturebrush

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

Gdiplus [13]: multi-color gradient of igplineargradientbrush

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

Gdiplus [15]: gammacorrection of igplineargradientbrush

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

Gdiplus [16]: setblendbellshape and setblendtriangularshape of igplineargradientbrush

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

Gdiplus [17]: other methods and attributes of igplineargradientbrush

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

Gdiplus [19]: setcenterpoint of igppathgradientbrush

Test: TestCode: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs; Type tform1 = Class (tform) Procedure formpaint (Sender: tobject ); procedure formmouseup (Sender:

Gdiplus [18]: centercolor and surroundcolors of igppathgradientbrush

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: //

Gdiplus [11]: The first build method of igplineargradientbrush

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

Gdiplus [6]: Overview of five paint brushes

GDI + has five paint brushes: Solid paint brush: igpsolidbrushShadow paint brush: igphatchbrushTexture painter: igptexturebrushLinear gradient Paint Brush: igplineargradientbrushPath gradient Paint Brush: igppathgradientbrush They have

Operate on the wave file (6): Obtain the waveform data of the wave file

Read functions and Test Code : Unit unit1; interfaceuses windows, messages, extensions, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) button1: tbutton; Procedure button1click (Sender: tobject);

Gdiplus [23]: igpfontfamily

Basic use of igpfontfamily: Uses gdiplus, kernel; Procedure tform1.formpaint (Sender: tobject); const PT: tgppointf = (X: 10; Y: 10); var fontfamily: igpfontfamily; Font: igpfont; brush: igpsolidbrush; begin fontfamily: = tgpfontfamily.

Gdiplus [22]: igpfont

Test: Uses gdiplus; Procedure tform1.formpaint (Sender: tobject); var graphics: igpgraphics; brush: igpsolidbrush; Pt: tgppointf; Font: igpfont; begin graphics: = tgpgraphics. create (handle); PT. initialize (10, 10); brush: =

Gdiplus [5]: igpcolors

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

Wave file operations (11): Use wavein... Function recording WAV Files

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;

Total Pages: 64722 1 .... 54244 54245 54246 54247 54248 .... 64722 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.