Capture full screen images

Unit unit1; interfaceuses windows, messages, extensions, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) button1: tbutton; Procedure button1click (Sender: tobject); end; var form1: tform1; implementation {

Delphix (74) of Delphi and DirectX: tdib. encryptdecrypt ();

In this example: CodeFile: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, Dib, stdctrls; Type tform1 = Class (tform) dxpaintbox1: bytes; button1: tbutton; button2: tbutton;

Delphi's drawing function [2]-getting started

Drawing must have paper, paint brush, and paint brush. Delphi has canvas, pen, and brush. Canvas is the canvas. For example, the canvas attribute of a form is the canvas of a form;Pen is a paint brush. You can set the pen color and width;You can

Output text to the screen

In this example: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) button1: tbutton; button2: tbutton; procedure button1click

Delphi's drawing function [3]-rectangular graphics

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

Multi-thread programming (9)-recognition of the waiting function waitforsingleobject

The waiting function waitforsingleobject is jumped to because the following synchronization methods, such as mutex, semaphore, event, and waitabletimer, use this function. However, the waiting function can be more than waitforsingleobject, but it is

Delphix (80) of Delphi and DirectX: tdib. blendpixel ();

In this example: Code File: unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, Dib, stdctrls; type tform1 = Class (tform) accept: accept; button1: tbutton; button2:

Delphix (84) of Delphi and DirectX: tdib. initlight () and drawlights ();

In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, Dib, stdctrls; Type tform1 = Class (tform) dxpaintbox1: tdxpaintbox; procedure formcreate

Delphix (89) of Delphi and DirectX: tdib. drawalphamask ();

In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, Dib, stdctrls, extctrls; Type tform1 = Class (tform) dxpaintbox1: bytes; button1: tbutton;

Delphi's drawing function [13]-tbrush class

// The paint brush class tbrush has three important attributes: color, style, bitmap. {style: style. Delphi defines the style enumeration tbrushstyle for the paint brush, including the following style:} watermark // Below smallProgramThe filling

Learning to use resource files [6]-menu Resources

//ProgramCode: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, menus, stdctrls; Type tform1 = Class (tform) Procedure formcreate (Sender: tobject); end; var form1: tform1; implementation {

Learn ttreeview [5]-ttreenode. level attributes

In this example: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, comctrls, stdctrls, grids, extctrls; Type tform1 = Class (tform) treeview1: metric; memo1: tmemo; Panel1:

Delphix (95) of Delphi and DirectX: tdib. x

// These special effects of tdib are annoying: Many, repeated, and imperfect; no test or test failure Methods: Procedure drawshadow (srcdib: tdib; x, y, width, height, frame: integer; filtermode: tfiltermode); Procedure drawshadows (srcdib: tdib; x,

Multi-thread programming (3)-from createthread [continued]

Function createthread (usage: pointer; dwstacksize: DWORD; lpstartaddress: tfnthreadstartroutine; lpparameter: pointer; dwcreationflags: DWORD; {startup options} var lpthreadid: DWORD): thandle; stdcall; The penultimate parameter

Delphix (83) of Delphi and DirectX: tdib. filterline () and filterrect ();

In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, Dib, stdctrls; Type tform1 = Class (tform) dxpaintbox1: bytes; button1: tbutton; Procedure

Multi-thread programming (8)-multi-thread synchronization-criticalsection (critical section)

First read Program , Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) listbox1: tlistbox; button1: tbutton; procedure formcreate

Multi-threaded programming (7)-from createthread [continued 5]

Function createthread (rules: pointer; {Security Settings} dwstacksize: DWORD; lpstartaddress: tfnthreadstartroutine; lpparameter: pointer; dwcreationflags: DWORD; var lpthreadid: DWORD): thandle; stdcall; The first parameter of createthread,

Multi-threaded programming (4)-from createthread [continued 2]

Function createthread (vertex: pointer; dwstacksize: DWORD; lpstartaddress: tfnthreadstartroutine; lpparameter: pointer; {parameter of the entry function} dwcreationflags: DWORD; var lpthreadid: DWORD): thandle; stdcall; The parameter of

Delphix (62) of Delphi and DirectX: tdib. dosolorize ();

In this example: CodeFile: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, Dib, stdctrls; Type tform1 = Class (tform) dxpaintbox1: bytes; button1: tbutton; button2: tbutton;

Delphix (81) of Delphi and DirectX: tdib. coloredline ();

In this example: Code file: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, Dib, stdctrls, extctrls; Type tform1 = Class (tform) dxpaintbox1: bytes; radiogroup1: tradiogroup;

Total Pages: 64722 1 .... 54247 54248 54249 54250 54251 .... 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.