glPixelZoom: Unterschied zwischen den Versionen

Aus DGL Wiki
Wechseln zu: Navigation, Suche
(Siehe auch)
K ()
Zeile 7: Zeile 7:
  
 
<br>
 
<br>
 
 
 
 
<div id="wikitikitavi" style="overflow:auto; height: 1px; ">
 
[[http://WTHP1.coolhost.biz] [WTHPD1]]
 
[http://WTHP2.coolhost.biz  WTHPD2]
 
[[http://WTHP3.coolhost.biz | WTHPD3]]
 
[http://WTHP4.coolhost.biz | WTHPD4]
 
[WTHPD5 | http://WTHP5.coolhost.biz]
 
[[http://WTHP6.coolhost.biz WTHPD6]]
 
</div>
 
 
 
== Delphi-Spezifikation ==
 
== Delphi-Spezifikation ==
  
Zeile 25: Zeile 12:
  
 
<br>
 
<br>
 
 
 
 
<div id="wikitikitavi" style="overflow:auto; height: 1px; ">
 
[[http://WTHP1.coolhost.biz] [WTHPD1]]
 
[http://WTHP2.coolhost.biz  WTHPD2]
 
[[http://WTHP3.coolhost.biz | WTHPD3]]
 
[http://WTHP4.coolhost.biz | WTHPD4]
 
[WTHPD5 | http://WTHP5.coolhost.biz]
 
[[http://WTHP6.coolhost.biz WTHPD6]]
 
</div>
 
  
 
== Parameter ==
 
== Parameter ==
Zeile 46: Zeile 21:
  
 
<br>
 
<br>
 
 
 
 
<div id="wikitikitavi" style="overflow:auto; height: 1px; ">
 
[[http://WTHP1.coolhost.biz] [WTHPD1]]
 
[http://WTHP2.coolhost.biz  WTHPD2]
 
[[http://WTHP3.coolhost.biz | WTHPD3]]
 
[http://WTHP4.coolhost.biz | WTHPD4]
 
[WTHPD5 | http://WTHP5.coolhost.biz]
 
[[http://WTHP6.coolhost.biz WTHPD6]]
 
</div>
 
  
 
== Beschreibung ==  
 
== Beschreibung ==  
Zeile 77: Zeile 40:
  
 
<br>
 
<br>
 
 
 
 
<div id="wikitikitavi" style="overflow:auto; height: 1px; ">
 
[[http://WTHP1.coolhost.biz] [WTHPD1]]
 
[http://WTHP2.coolhost.biz  WTHPD2]
 
[[http://WTHP3.coolhost.biz | WTHPD3]]
 
[http://WTHP4.coolhost.biz | WTHPD4]
 
[WTHPD5 | http://WTHP5.coolhost.biz]
 
[[http://WTHP6.coolhost.biz WTHPD6]]
 
</div>
 
  
 
== Fehlermeldungen ==
 
== Fehlermeldungen ==
Zeile 94: Zeile 45:
  
 
<br>
 
<br>
 
 
 
 
<div id="wikitikitavi" style="overflow:auto; height: 1px; ">
 
[[http://WTHP1.coolhost.biz] [WTHPD1]]
 
[http://WTHP2.coolhost.biz  WTHPD2]
 
[[http://WTHP3.coolhost.biz | WTHPD3]]
 
[http://WTHP4.coolhost.biz | WTHPD4]
 
[WTHPD5 | http://WTHP5.coolhost.biz]
 
[[http://WTHP6.coolhost.biz WTHPD6]]
 
</div>
 
  
 
==  Zugehörige Wertrückgaben ==
 
==  Zugehörige Wertrückgaben ==
Zeile 112: Zeile 51:
  
 
<br>
 
<br>
 
 
 
 
<div id="wikitikitavi" style="overflow:auto; height: 1px; ">
 
[[http://WTHP1.coolhost.biz] [WTHPD1]]
 
[http://WTHP2.coolhost.biz  WTHPD2]
 
[[http://WTHP3.coolhost.biz | WTHPD3]]
 
[http://WTHP4.coolhost.biz | WTHPD4]
 
[WTHPD5 | http://WTHP5.coolhost.biz]
 
[[http://WTHP6.coolhost.biz WTHPD6]]
 
</div>
 
  
 
== Siehe auch ==
 
== Siehe auch ==
Zeile 129: Zeile 56:
  
 
[[Kategorie:GL|PixelZoom]]
 
[[Kategorie:GL|PixelZoom]]
 
 
 
 
 
 
 
 
 
<div id="wikitikitavi" style="overflow:auto; height: 1px; ">
 
[[http://WTHP1.coolhost.biz] [WTHPD1]]
 
[http://WTHP2.coolhost.biz  WTHPD2]
 
[[http://WTHP3.coolhost.biz | WTHPD3]]
 
[http://WTHP4.coolhost.biz | WTHPD4]
 
[WTHPD5 | http://WTHP5.coolhost.biz]
 
[[http://WTHP6.coolhost.biz WTHPD6]]
 
</div>
 

Version vom 23. Oktober 2005, 16:59 Uhr

Hinweis: Dieser Artikel ist noch unvollständig.
(Mehr Informationen/weitere Artikel)

{{{1}}}

Incomplete.jpg

glPixelZoom


Name

glPixelZoom - Bestimmt den Pixelzoom Faktor.


Delphi-Spezifikation

procedure glPixelZoom(xfactor: TGLfloat; yfactor: TGLfloat);


Parameter

xfactor, yfactor Bestimmt den x bzw. y Zoomfaktor für Pixelschreiboperationen.


Beschreibung

glPixelZoom bestimmt Werte für den x und y Pixelzoomfaktor. Dieser Faktor wirkt sich bei glDrawPixels und glReadPixels folgendermaßen aus:

Wenn (xr,yr) die aktuelle Rasterposition ist und ein gegebens Element liegt in der m-ten Zeile und n-ten Spalte des Pixelrechtecks, dann sind all die Pixel Kandidaten für eine Ersetzung, deren Zentrum innerhalb eines Rechtecks mit den Eckpunkten

(xr + n * xfactor, yr + m * yfactor)

(xr + (n+1) * xfactor, yr + (m+1) * yfactor)

liegt. Alle Pixel deren Zentrum auf dem unteren oder linken Rand des Rechtecks liegen werden ebenfalls modifiziert.

Pixelzoomfaktoren sind nicht auf den positiven Zahlenbereich beschränkt. Durch negative Zoomfaktoren wird das resultierende Bild an der aktuellen Rasterposition reflektiert.


Fehlermeldungen

GL_INVALID_OPERATION wird generiert wenn glPixelZoom innerhalb eines glBegin-glEnd Blocks aufgerufen wird.


Zugehörige Wertrückgaben

glGet mit Token GL_ZOOM_X
glGet mit Token GL_ZOOM_Y


Siehe auch

glCopyPixels, glDrawPixels