Originally Posted by
paspas
1- how i can change the pixel size automatically when i create an full screen app
I think the code is myDevice.Windowed:= True; in Asphyre but not in PXL.
In form's create event, use this code:
Code:
BorderStyle := bsNone;
Left := 0;
Top := 0;
ClientWidth := Screen.Width;
ClientHeight := Screen.Height;
This should make the application full-screen.
Originally Posted by
paspas
2- what is the equivalent of this code in pxl ? >
myCanvas.DrawRot(myImage, X, Y, Angle, Scale, Color, Trunc(Pattern), DrawFx);
You can find equivalent in "Basic" example, which would look like this:
Code:
// Draw the image of famous Lenna.
EngineCanvas.UseImage(EngineImages[ImageLenna]);
EngineCanvas.TexQuad(TQuad.Rotated(
Point2f(DisplaySize.X * 0.5, DisplaySize.Y * 0.5),
Point2f(300.0, 300.0),
EngineTicks * 0.01),
IntColorAlpha(128));
Bookmarks