|
ScreenViewPort | ||
ScreenViewPort X1, Y1, X2, Y2 | ||
Parameters: X1 = The top left hand X position of the viewport Y1 = The top left hand Y position of the viewport X2 = The bottom right hand X position of the viewport Y2 = The bottom right hand Y position of the viewport |
||
Returns: NONE | ||
ScreenViewPort lets you set the rendering boundaries of the screen. These boundaries take effect when graphics are being drawn to the screen. The viewport is the clipping boundary. Normally when you draw to the screen, those graphics will be clipped to the bounding edges of the screen.. What setting the viewport does, is it allows you to choose a section of the screen that you'd like all future drawing operations to be drawn within (clipped against). This allows us to render graphics to a certain area within an screen, without effective what's outside the area. FACTS: * Applying a ViewPort to the Screen effects when the Image is being rendered to !. * By default the screens viewport will be set to 0,0,ScreenWidth,ScreenHeight Mini Tutorial: Create an image, change it's viewport, and show the effects of the change.
This example would output.
|
Related Info: | GetImageViewPortX1 | GetImageViewPortX2 | GetImageViewPortY1 | GetImageViewPortY2 | ImageViewPort : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |