User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:graphics.h:setviewport

This is an old revision of the document!


setviewport

**setviewport** function sets the current viewport for graphics output.
This function is used to restrict drawing to a particular portion on the screen. For example setviewport(100 , 100, 200, 200, 1);
will restrict our drawing activity inside the rectangle(100,100, 200, 200).
left, top, right, bottom are the coordinates of main diagonal of rectangle in which we wish to restrict our drawing. Also note that the point (left, top) becomes the new origin.

description of setviewport

setviewport is in work by code-reference.com
if you are faster… don't hasitate and add it

no example at the moment

output of setviewport c example

  no example at the moment

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/graphics.h/setviewport.1415235853.txt · Last modified: 2024/02/16 01:03 (external edit)

Impressum Datenschutz