Loading:


    TextField sharpness [AS 2]

    Klasa: TextField

    Kompatybilność: ActionScript 1.0, Flash 6+

     

    Określa ostrość krawędzi znaków w instancji TextField.

     

    Ta właściwość nadawana jest tylko wtedy, gdy właściwość antiAliasType pola tekstowego jest ustawiona na "advanced". Zasięg dla sharpness to liczba pomiędzy -400, a 400. Jeśli próbujesz nadać na sharpness wartość spoza tego zasięgu, Flash ustawi właściwość na najbliższą w przedziale (-400 lub 400).



    Napisz Artyku³

    Listing

    var moj_format:TextFormat = new TextFormat();
    moj_format.font = "Times-12";

    var moj_text1:TextField = this.createTextField("moj_text1", this.getNextHighestDepth(), 10, 10, 400, 100);
    moj_text1.text = "This text has sharpness set to 400."
    moj_text1.embedFonts = true;
    moj_text1.antiAliasType = "advanced";
    moj_text1.gridFitType = "pixel";
    moj_text1.sharpness = 400;
    moj_text1.setTextFormat(moj_format);

    var moj_text2:TextField = this.createTextField("moj_text2", this.getNextHighestDepth(), 10, 40, 400, 100);
    moj_text2.text = "This text has sharpness set to 0."
    moj_text2.embedFonts = true;
    moj_text2.antiAliasType = "advanced";
    moj_text2.gridFitType = "pixel";
    moj_text2.sharpness = 0;
    moj_text2.setTextFormat(moj_format);
       
    var moj_text3:TextField = this.createTextField("moj_text3", this.getNextHighestDepth(), 10, 70, 400, 100);
    moj_text3.text = "This text has sharpness set to -400."
    moj_text3.embedFonts = true;
    moj_text3.antiAliasType = "advanced";
    moj_text3.gridFitType = "pixel";
    moj_text3.sharpness = -400;
    moj_text3.setTextFormat(moj_format);
     




    Dodano przez: divix
    Ranga: Administrator serwisu Punktów: 0
    Komentarze użytkowników
      • Tre¶æ komentarza
        Kod do komentarza (opcjonalnie)
        PHP JavaScript MySQL Smarty SQL HTML CSS ActionScript
        Autor
        Token
        token

         

         








    funkcje.net
    Wszelkie prawa zastrzeżone©. | Funkcje.net 2008-2025 v.1.5 | design: diviXdesign & rainbowcolors