By default, Max2D is double buffered which means you will have to use Flip once you have finished drawing each frame of graphics. See CreatePixmap for valid pixmap formats. Unlocks an image previously locked with LockImage. TileImage draws an image in a repeating, tiled pattern, filling the current viewport. This page was last edited on 25 January , at To use this object for rendering, you will first have to select it using SetGraphics. This page was last edited on 6 January , at
|Date Added:||15 March 2009|
|File Size:||61.94 Mb|
|Operating Systems:||Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X|
|Price:||Free* [*Free Regsitration Required]|
The flags parameter can be any combination of the following: A depth of 0 can be used to select ‘windowed mode’ graphics, while non-0 depths select ‘fullscreen’ graphics. Policies and guidelines Contact us.
Max2D features a multilayered pixel perfect collision system. The current Origin is an x,y coordinate added to all drawing x,y coordinates after any rotation or scaling. Pixmaps have 5 properties: To retrieve a pixmap’s pitch, use the PixmapPitch command.
Views Read Edit View history. TImage,x1,y1,frame1,rot1 ,scalex1 ,scaley1 ,image2: You can retrieve a pointer to a pixmap’s pixels using the PixmapPixelPtr command.
BlitzMax – Le Bottin des Jeux Linux
A graphics object represents a rectangular area you can render to. If auto midhandle mode is disabled, images are handled by their top left corner. An image’s handle is subtracted from the coordinates of DrawImage before rotation and scale are applied. Any regions of a DrawCommand that fall outside the current ViewPort are not drawn.
The redgreen and blue parameters should be in the range of 0 to This is achieved by using software timing techniques when necessary. If sync is -1 and the current graphics object was created with the Graphics command, then flips will occur at the graphics object’s refresh rate regardless of whether or not the graphics hardware supports such a refresh rate.
Pixmaps are used to manipulate images at a pixel level, see the pixmaps module for details. This command is useful for calculating horizontal alignment of text when using the DrawText command.
DrawText prints strings at position xy of the graphics display using the current image font specified by the SetImageFont command. A TGraphicsMode object contains the following fields: Flip swap the front and back buffers of the gaphics graphics objects.
Pixmaps provide storage for rectangular regions of pixels. The horizontal, vertical, width and height values of the current Viewport in the grzphics supplied.
SetGraphics will also change the current graphics driver if g uses a different driver than the current driver. The current Scale, Rotation, Origin and Handle settings are taken into account so coordinates for the collision commands accurately match their drawing counterparts DrawRect and DrawImage.
Graphics also enables bliztmax input mode, providing a simple way to monitor the keyboard and mouse. Graphics is a convenience function that graphice the process of creating a graphics object.
In order to DrawText in fonts other than the default system font use the SetImageFont command with a font handle returned by the LoadImageFont command. Drawing commands are affected by the current color, alpha and blend mode. GetGraphicsMode returns information about a specific graphics mode. The Max2D module provides a set of commands for drawing 2D graphics.
This value can be 0, 16, 24 or 32 depending on the graphics modes available. To create a graphics object, use either Graphics or CreateGraphics. Rotation and scaling occur relative to the current handle.