Test Demo Download: Files.cnblogs.com/del/delphix_1.rar (under Delphi 2007 and 2009 are compiled through)In fact, according to the introduction here (www.cnblogs.com/del/archive/2008/06/13/1219324.html), faster than the download, also do not need to download.
DirectX, Microsoft technology for a long time; Starting with Windows Vista, DirectX is already the interface foundation for Microsoft's operating system.
Under the Delphi use DirectX more popular has the following four kinds of ways:
Test demo download: http://files.cnblogs.com/del/DelphiX_1.rar
(Compiled in Delphi 2007 and 2009)
In fact, according to the introduction here, it is faster than downloading and does not need to be downloaded.
DirectX: Microsoft's technology has been around for a long time. Since Windows Vista, DirectX has become the interface basis of Microsoft's operating system.
There are four popular methods to use DirectX in Delphi:DelphixDspackAsphyre (?)Delphi DirectX
How to Use popmenu Delphi/Windows SDK/API in delphix
Http://www.delphi2007.net/DelphiMultimedia/html/delphi_20061026120353200.html
A surface is created under delphix. you want to display a popmenu on the top and write a popmenu on your own. You cannot directly use the popup function. You cannot display the menu and do not know how to do it.
Do you know how to use d
Many friends may have encountered this problem: delphix switches out of ALT + tab in full screen mode, and then returns to the original window, the page becomes blank. This is intolerable for gamers.
The fire man searched a lot of materials for this and found that delphix had such a problem. However, most of them solved the problem by blocking Alt + TAB. It is estimated that this is a small bug of
Http://www.xxiyy.com/temp/CSGAME.rar
Originally, I wanted to trigger the Collision Detection with an event. I was not proficient in learning the event, and I was confused when the event was triggered ~~The delphix engine does not adopt the event-triggered method either. So let's do this for the time being ~~
In delphix, because dx is used, the area detection of collision detection uses color detection. I
After creating a project, add dxdraw1 and dximagelist1 on the form;
Then you only need the following four linesCodeThe delphix. dxg image can be displayed in dxdraw1:
Procedure tform1.button1click (Sender: tobject); begin dximagelist1.items. loadfromfile ('C: \ temp \ delphix. dxg'); dximagelist1.dxdraw: = dxdraw1; dximagelist1.items [0]. draw (dxdraw1.surface, 10, 10, 0); dxdraw1.flip; end;
On the component panel of delphix, the second is tdxdib;
Tdxdib. DiB is the unique attribute of tdxdib (others are inherent in tcomponent );
The tdxdib. Dib attribute is a tdib object;
Tdib and tbitmap both inherit from tgraphic directly. They are an image container and have an alias: tdibitmap;
Tdib and tdxdraw. Surface and tdximagelist have similar features (tpicturecollectionitem), but they are more powerful.
The uses Dib unit is requir
In delphix, all we can see is drawn in tdxdraw.
Tdxdraw has two default drawing surfaces: tdxdraw. Surface and tdxdraw. Primary;Generally, you need to first plot the image on the background (surface), and then use the tdxdraw. Flip command to switch between the front and back ends to see the rendering effect.
Tdxdraw. Flip replaces the surface and primary objects, so we can plot only on the surface;Because of DirectX's working mechanism, this sw
Delphi and DirectX Delphix (6): Allow Tdximagelist to interact with regular VCL
This example tests two questions:
1, other VCL loaded pictures can be used for tdximagelist;
2, tdximagelist in the picture can give other VCL use.
In the example, first load the picture with Tpicture, then give the tdximagelist;
The picture is then drawn on the form, not in the Tdxdraw.
Continue to understand point tdximagelist:
The Tdximagelist control has only tw
In the Delphix, what can be seen is generally painted in Tdxdraw.
Tdxdraw default Two drawing surfaces: Tdxdraw.surface and tdxdraw.primary;
Generally first in the background (Surface) drawing, and then use the tdxdraw.flip command switch before and after the table, so as to see the rendering effect.
Tdxdraw.flip will replace Surface and Primary two objects, so we can only draw on the Surface;
Because of the working mechanism of DirectX, let this
This code is for delphix. You can download it on www.2ccc.com.
Steps:
(1) place the following space on the main form of the newly created Project: dximagelist, dxdraw, dxspriteengine, dxtimer
(2) set the image to be displayed: dximagelist-> items-> Create a New tpicturecollectionitem and name it backgroundpicture-> select the picture attribute of the item-> select an image (in BMP format );
The following code is used:
Unit unit1;
Interface
UsesWindows
Delphix provides a high-performance timer tdxtimer, which is basically the same as timer.
When we use timer, we seldom set interval to below 50 (this should be the limit of its accuracy );You can use tdxtimer to set interval to 0, which means the speed is as fast as possible!
In this example:
Code File:
Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, dxclass, d
On the Delphix palette, the second one is Tdxdib;
Tdxdib. Dib is the only attribute of Tdxdib (others are tcomponent intrinsic);
Tdxdib. The Dib property is a Tdib object;
Tdib and Tbitmap are directly inherited from Tgraphic, is a picture container, it also has individual name: Tdibitmap;
Tdib and Tdxdraw.surface also have the same elements (Tpicturecollectionitem) in Tdximagelist, but they are more powerful.
The use of Tdib requires uses DIB un
Delphi and DirectX Delphix (): Tdib. Drawtransparent, Drawtranslucent, Drawalpha ();
Tdib. Drawtransparent: Transparent by the specified transparent color;
Tdib. Drawtranslucent: First by the specified transparent color transparent, and then translucent;
DIB. Drawalpha: Transparent by the specified transparent color, and then by the specified transparency.
This example effect chart:
Code files:
Unit Unit1;InterfaceUsesWindows, Messages, sysuti
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.