GLBasic forum

Other languages => GLBasic - de => Topic started by: mull on 2009-Oct-08

Title: ZoomSprite
Post by: mull on 2009-Oct-08
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
Title: Re: ZoomSprite
Post by: Kitty Hello on 2009-Oct-09
Mach mal SMOOTHSHADING FALSE. Oder vorher SETTRANSPARENCY RGB(0,0,0). Da scheinen Transparente Nachbarpixel durch.
Title: Re: ZoomSprite
Post by: mull on 2009-Oct-09
Alles probiert, der Rand bleibt.

Es muß am vergrößern liegen, da ZommSprite ohne Vergrößerung das richtige macht.
Title: Re: ZoomSprite
Post by: Kitty Hello on 2009-Oct-09
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?
Title: Re: ZoomSprite
Post by: mull on 2009-Oct-09
Jo, das funzt ! Danke.