DirectX-Forum - Beitragsübersicht -
ThemaDX9: pixelmanipulation
Von cgmarco
E-Mail cgmarco@gmx.de
Datum 24. Oktober 2009 um 15:07:02
Frage moin moin
ich möchte die pixel einer textur (ohne pixelshader) manipulieren...
wie geht das???
Antwort:
Von cgmarco
E-Mail cgmarco@gmx.de
Datum 27. Oktober 2009 um 00:04:54
Antwort moin moin

ok habe bisher folgendes:

Dim d3dsd As SurfaceDescription
d3dsd = tex(1).GetLevelDescription(0)
Dim rect As Rectangle
Dim x As Integer
Dim y As Integer
rect.Height = d3dsd.Height
rect.Width = d3dsd.Width
Dim t As GraphicsStream
t = tex(1).LockRectangle(0, rect, 0)

For y = 1 To rect.Height 'Step 3
For x = 1 To rect.Width 'Step 3
t.WriteByte(0)
t.WriteByte(100)
t.WriteByte(0)
Next
Next

jedoch wird jeder rgb-anteil gleich verändert und nicht unterschiedlich
woran liegt das?
[ Antwort schreiben | Zurück zum DirectX-Forum | Forum-Hilfe ]
Antworten
DX9: pixelmanipulation - cgmarco 24. Oktober 2009 um 15:07:02
Re: pixelmanipulation - Michael Kenzel 24. Oktober 2009 um 15:54:31
Re: pixelmanipulation - cgmarco 24. Oktober 2009 um 18:08:51
Re: pixelmanipulation - Michael Kenzel 24. Oktober 2009 um 20:44:54
Re: pixelmanipulation - cgmarco 25. Oktober 2009 um 16:00:20
Re: pixelmanipulation - cgmarco 26. Oktober 2009 um 21:58:42
Re: pixelmanipulation - cgmarco 27. Oktober 2009 um 00:04:54
Re: pixelmanipulation - Nico 27. Oktober 2009 um 16:20:42

Ihre Antwort
(Nick-)Name   Wichtige Informationen zur Namensangabe
E-Mail (opt.)  Wichtige Informationen zur Angabe einer eMail-Adresse
Thema   Wichtige Informationen zur Angabe eines Themas
Betrifft (IDE)  DirectX 9
Ihre Antwort
Smilies
Mehr...
FettKursivUnterstrichen   Übersicht der Tipp-KürzelÜbersicht der Projekt-KürzelÜbersicht der Bücher-Kürzel 
Homepage
Titel
Root-Smilies              
             
             
[ Zurück zum DirectX-Forum | Forum-Archiv | Forum-Hilfe | Chat ]

Zum Seitenanfang

Startseite | VB-/VBA-Tipps | Projekte | Tutorials | API-Referenz | Komponenten | Bücherecke | Gewinnspiele | VB.Net | .Net-Forum | DirectX | DirectX-Forum | Chat | Ausschreibungen | Links | Suchen | Stichwortverzeichnis | Feedback | Impressum

Seite empfehlen Bug-Report
Letzte Aktualisierung: Sonntag, 13. Dezember 2015