Showing changes from revision #1 to #2:
Added | Removed | Changed
Trduction en cours
Descripteur de mode est une chaîne de caractère qui contient une liste de paramètres séparés par des espaces ou des points virgule décrivant un mode graphique. Par exemple “X640 Y480 C256” décrit le mode VGA 256 couleurs.
Mode En strings plus consist des of attributs a standards list qui of commencent space par or une comma lettre, separated il attributes, est terminated possible with de a commencer control la character. chaîne For de example, caractères “X640 par Y480 un C256” to describe a 256 colourVGAnuméro de mode . resolution Par mode. exemple “28 C16M” prends les paramètres du mode 28 auquel on a modifié le nombre de couleurs pour le passer à 16M.
In addition to the standard attributes, the string may start with a mode number. If this is the case then the additional attributes will act as modifiers on the base attributes of that mode. For example, “28 C16M” for a 16 million colour version of mode 28.
Les attributs suivant peuvent être définis dans le descripteur de mode:
The following attributes are currently defined:
Attribut | Details |
---|---|
X | Résolution X en pixels, ex. X1024 |
Y | Résolution Y en pixels, ex. Y768 |
C | Nombre de couleurs: |
C2 = 2 couleurs (1bpp) | |
C4 = 4 couleurs (2bpp) | |
C16 = 16 couleurs (4bpp) | |
C64 = 64 couleurs (VIDC1 style 256 couleurs mode) (8bpp) | |
C256 = 256 couleurs (8bpp) | |
C4K/C4T = 4096 couleurs (16bpp) | |
C32K/C32T = 32768 couleurs (16bpp) | |
C64K/C64T = 65536 couleurs (16bpp) | |
C16M = 16 millions couleurs (32bpp) | |
G | Niveau de gris / couleurs : |
G2 = 2 niveaux de gris (1bpp) | |
G4 = 4 niveaux de gris (2bpp) | |
G16 = 16 niveaux de gris (4bpp) | |
G256 = 256 niveaux de gris (8bpp) | |
G16M = 16 millions couleurs (24bpp packed) | |
F | Fréquence d’écran en Hz, e.g. F60 |
EX | Ratio X (0-3), e.g. EX1 |
EY | Ratio Y (0-3), e.g. EY1 |
T | Nombre de couleur du mode Teletext, ex. T16 |
TX | Nombre de colonnes du mode Teletext, ex. TX40 |
TY | Nombre de lignes du mode Teletext, ex. TY25 |
L | Format des pixels |
LTBGR = Format VIDC standard. Le rouge dans les bits de poids faibles | |
LTRGB = Les composantes Rouge et Bleu sont inversées | |
LABGR = Format VIDC avec canal alpha | |
LARGB = Les composantes Rouge et Bleu sont inversées avec canal alpha |
Attribute | Details |
---|---|
X | Mode X resolution in pixels, e.g. X1024 |
Y | Mode Y resolution in pixels, e.g. Y768 |
C | Number of colours: |
C2 = 2 colours (1bpp) | |
C4 = 4 colours (2bpp) | |
C16 = 16 colours (4bpp) | |
C64 = 64 colours (VIDC1 style 256 colour mode) (8bpp) | |
C256 = 256 colours (8bpp) | |
C4K/C4T = 4096 colours (16bpp) | |
C32K/C32T = 32768 colours (16bpp) | |
C64K/C64T = 65536 colours (16bpp) | |
C16M = 16 million colours (32bpp) | |
G | Number of greys/colours: |
G2 = 2 greys (1bpp) | |
G4 = 4 greys (2bpp) | |
G16 = 16 greys (4bpp) | |
G256 = 256 greys (8bpp) | |
G16M = 16 million colours (24bpp packed) | |
F | Framerate in Hz, e.g. F60 |
EX | X eigen factor (0-3), e.g. EX1 |
EY | Y eigen factor (0-3), e.g. EY1 |
T | Teletext mode with given number of colours, e.g. T16 |
TX | Teletext mode width in characters, e.g. TX40 |
TY | Teletext mode height in characters, e.g. TY25 |
L | Pixel layout |
LTBGR = Traditional VIDC format with red in low bits | |
LTRGB = Red/blue swapped | |
LABGR = VIDC format with alpha channel | |
LARGB = Red/blue swapped with alpha channel |
Specifying Définir the plusieurs same fois attribute le more même than attribut once, ou or bien specifying fournir conflicting 2 attributes attributs (e.g. en both conflit C n’est and pas G autorisé, attributes) et is retournera an probablement invalid un string erreur. and should result in an error being generated from most APIs.
Likewise, De it même, is il illegal est to interdit omit d’omettre a un required attribut attribute. obligatoire. E.g. Par for exemple, a pour standard un mode the standard, les attributs X, Y and et C or (ou G G) attributes doivent must être be fournis. provided. However if a mode number has been provided, these attributes are optional as the default values will be taken from the definition of that mode.
Si un numéro de mode a été fourni, ces attributs sont facultatifs, car les valeurs par défaut seront extraites de la définition de ce mode.
For Certains colour attributs depths de which couleurs have ne no permettent space pas for de a définir transparency/alpha un channel canal (e.g. C64K, G16M) it is an error to specify a pixel layout which contains alpha. If Pour the ces attributs, il n’est pas possible de fournir un format de pixel layout précisant is une to couche be alpha. specified Par then exemple only “C64K the LT… transparency-based layouts can be used.LARGB” n’est pas autorisé.
Not Toutes all les versions version of deRISC OS support ne all supportent attributes: pas tous les attributs: