ZoomSprite

Previous topic - Next topic

mull

Im unteren Beispiel bekomme ich bei Zoomsprite immer rötliche Umrisse bei den Buchstaben. Zoomsprite ohne Größenänderung zeigt es normal an.


LOCAL w, h, ret = GENSPRITE(), Text$="123"
   GETFONTSIZE w, h
    w = w * LEN(Text$)
   CREATESCREEN 0, ret, w, h
// Textsprite erstellen
   USESCREEN 0
   DRAWRECT 0, 0, w, h, RGB(255,0,128)
   //SETTRANSPARENCY      RGB(255,0,128)
   PRINT Text$, 0,0
   USESCREEN -1
   
   WHILE TRUE
      DRAWRECT 0, 0, 500, 400, RGB(100,100,250)
      ZOOMSPRITE ret, 200, 100, 1, 1
      ZOOMSPRITE ret, 200, 200, 6, 6
      SHOWSCREEN
   WEND
AMD Phenom II x4 955 Proc. 3.2 GHZ,  4GB Ram
Windows 7 64bit Ultima
NVIDIA GeForce GTX 460
Leistungsindex 5,7

Kitty Hello

Mach mal SMOOTHSHADING FALSE. Oder vorher SETTRANSPARENCY RGB(0,0,0). Da scheinen Transparente Nachbarpixel durch.

mull

Alles probiert, der Rand bleibt.

Es muß am vergrößern liegen, da ZommSprite ohne Vergrößerung das richtige macht.
AMD Phenom II x4 955 Proc. 3.2 GHZ,  4GB Ram
Windows 7 64bit Ultima
NVIDIA GeForce GTX 460
Leistungsindex 5,7

Kitty Hello

Code (glbasic) Select
   WHILE TRUE
      DRAWRECT 0, 0, 500, 400, RGB(100,100,250)
      SMOOTHSHADING FALSE // HILFT BEI MIR
      ZOOMSPRITE ret, 200, 100, 1, 1
      ZOOMSPRITE ret, 200, 200, 6, 6
      SHOWSCREEN
   WEND


So geht's?

mull

Jo, das funzt ! Danke.
AMD Phenom II x4 955 Proc. 3.2 GHZ,  4GB Ram
Windows 7 64bit Ultima
NVIDIA GeForce GTX 460
Leistungsindex 5,7