Browsing Chinese (Simplified) translation

Don't show this notice anymore
Before translating, be sure to go through Launchpad Translators instructions and Chinese (Simplified) guidelines.
817 of 128 results
8.
An object of type Displayable, created by calling one of the functions given below.
一个Displayable类型的对象,可以通过调用下面其中一个函数来创建。
Translated and reviewed by Hanming Wu
Located in ../../source/displayables.rst:20
9.
A string with a dot (.) in it. Such a string is interpreted as a filename by :func:`Image`.
包含一个分隔符(.)的字符串。这样的字符串被:func:`Image`解析为文件名。
Translated and reviewed by Hanming Wu
Located in ../../source/displayables.rst:22
10.
A color. A color may either be given as a hexidecimal color string in "#rgb", "#rgba", "#rrggbb", or "#rrggbbaa" form, or an (r, g, b, a) tuple, where each component is an integer between 0 and 255. Colors are passed to :func:`Solid`.
一种颜色。颜色可以通过十六进制的颜色字符串表示,格式为"#rgb", "#rgba", "#rrggbb", 或"#rrggbbaa";或者是(r,g,b,a)的元祖,每个元素是一个0~255之间的整数。这个颜色被传递给:func:`Solid`。
Translated and reviewed by Hanming Wu
Located in ../../source/displayables.rst:24
11.
An image name. Any other string is interpreted as a reference to an image defined with the image statement.
一个图像的名字。可以是任意的字符串,通过image语句定义的一幅图像的引用。
Translated and reviewed by Hanming Wu
Located in ../../source/displayables.rst:28
12.
Images
图像
Translated and reviewed by Huang Junjie
Located in ../../source/displayables.rst:34
13.
The most commonly used displayable is Image, which loads a file from disk and displays it. Since Image is so commonly used, when a string giving a filename is used in a context that expects a displayable, an Image is automatically created. The only time it's necessary to use Image directly is when you want to create an image with style properties.
最常用的displayable就是图像,可以从文件读取并展示出来。因为图像的使用太频繁了,所以在上下文中用来表示文件名的字符串都被认为是一个displayable,并根据其文件内容自动创建一个图像。只有当您需要创建一个有样式属性的图像时才有必要直接使用一个图像。
Translated and reviewed by Hanming Wu
Located in ../../source/displayables.rst:36
14.
Loads an image from a file. `filename` is a string giving the name of the file.
从文件读取一个图像。`filename`是一个包含文件名的字符串。
Translated and reviewed by Hanming Wu
Located in ../../source/inc/im_image:5
15.
`filename` should be a JPEG or PNG file with an appropriate extension.
`filename`应该是一个JPEG或PNG文件,并以相应的扩展名结尾。
Translated and reviewed by Hanming Wu
Located in ../../source/inc/im_image:8
16.
Loading an Image from from a file on disk and decoding it so it can be drawn to the screen takes a long amount of time. While measured in the tenths or hundreds of seconds, the duration of the loading process is long enough that it can prevent an acceptable framerate, and become annoying to the user.
从磁盘上载入一幅图像并解码,使得其能够在屏幕上显示出来,这个过程需要花费大量时间。当这个过程长达数十秒甚至是上百秒时,载入过程持续的时间过长以至于会影响帧率,进而影响用户体验。
Translated and reviewed by Hanming Wu
Located in ../../source/displayables.rst:55
17.
Since an Image is of a fixed size, and doesn't change in response to input, game state, or the size of the area available to it, an Image can be loaded before it is needed, and placed into an area of memory known as the image cache. Once an Image is decoded and in the cache, it can be quickly drawn to the screen.
因为一幅图像有固定的尺寸,并且不会因用户的输入、游戏的状态、所处的空间的大小而产生变化,那么就可以在使用这幅图片前载入它,然后把它放置到内存中被成为图像缓存的地方。一旦图像被解码并放到缓存中,就可以被快速地显示在屏幕上。
Translated and reviewed by Hanming Wu
Located in ../../source/displayables.rst:61
817 of 128 results

This translation is managed by Launchpad Simplified Chinese Translators, assigned by Launchpad Translators.

You are not logged in. Please log in to work on translations.

Contributors to this translation: Hanming Wu, Huang Junjie.