User Tools

Site Tools


gamedev:canvassystem:image

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
gamedev:canvassystem:image [2015/06/17 23:47] dragonlordgamedev:canvassystem:image [2024/03/14 16:53] (current) dragonlord
Line 1: Line 1:
 +{{tag>dragonscript graphic canvas ui image}}
 <WRAP youarehere> <WRAP youarehere>
-[[:start|Start Page]] >> [[gamedev:main|Game Development with the Drag[en]gine]] >> [[gamedev:canvassystem:introduction|Canvas System]] >> **Canvas Image**+[[:start|Start Page]] >> [[:gamedev|Game Development with the Drag[en]gine]] >> [[gamedev:canvassystem:introduction|Canvas System]] >> **Canvas Image**
 </WRAP> </WRAP>
  
 ====== Canvas Image ====== ====== Canvas Image ======
-[[http://dragengine.rptd.ch/docs/dragengine/latest/classdeCanvasImage.html|Image canvas]] display a single image as content stretched to fill the entire canvas. This requires the canvas size to be set to the image size for proper 1-on-1 pixel matching. A transformation matrix can be used to apply effects like stretching if required. Canvas image have a **repeat-x** and **repeat-y** parameter. The default value for both repeat parameters is 1 displaying the stretched image exactly once. Using repetition values larger than 1 duplicates the image along the respective axis. The repeated images are stretched to fill the entire canvas. Thus increasing the repetition does not enlarge the canvas but simply tiles the image in the respective direction fitting into the same canvas content area as with no repetition used.+#@LinkApiDocDE2_HTML~classdeCanvasImage.html,Image canvas~@# display a single image as content stretched to fill the entire canvas. This requires the canvas size to be set to the image size for proper 1-on-1 pixel matching. A transformation matrix can be used to apply effects like stretching if required. Canvas image have a **repeat-x** and **repeat-y** parameter. The default value for both repeat parameters is 1 displaying the stretched image exactly once. Using repetition values larger than 1 duplicates the image along the respective axis. The repeated images are stretched to fill the entire canvas. Thus increasing the repetition does not enlarge the canvas but simply tiles the image in the respective direction fitting into the same canvas content area as with no repetition used.
  
 <WRAP center box 600px> <WRAP center box 600px>
gamedev/canvassystem/image.1434584862.txt.gz · Last modified: 2015/06/17 23:47 by dragonlord