| 1 |
# PyMuPDF Japanese documentation |
| 2 |
# Copyright (C) 2015-2023, Artifex |
| 3 |
# This file is distributed under the same license as the PyMuPDF package. |
| 4 |
# Jamie Lemon <[email protected]>, 2023. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PyMuPDF 1.23.0rc1\n" |
| 10 |
"Report-Msgid-Bugs-To: \n" |
| 11 |
"POT-Creation-Date: 2025-11-25 23:33+0000\n" |
| 12 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 13 |
"Last-Translator: Suzan Sanver <[email protected]>\n" |
| 14 |
"Language: ja\n" |
| 15 |
"Language-Team: ja <[email protected]>\n" |
| 16 |
"Plural-Forms: nplurals=1; plural=0;\n" |
| 17 |
"MIME-Version: 1.0\n" |
| 18 |
"Content-Type: text/plain; charset=utf-8\n" |
| 19 |
"Content-Transfer-Encoding: 8bit\n" |
| 20 |
"Generated-By: Babel 2.10.3\n" |
| 21 |
|
| 22 |
#: ../../header.rst:-1 77cdad9d379a4a459fb8f61a5126752b |
| 23 |
msgid "Artifex" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#: ../../header.rst:-1 32cc68ce63c240bdb7a2fdfe4d927af7 |
| 27 |
msgid "" |
| 28 |
"PyMuPDF is a high-performance Python library for data extraction, " |
| 29 |
"analysis, conversion & manipulation of PDF (and other) documents." |
| 30 |
msgstr "PyMuPDF は、PDF (およびその他の)ドキュメントのデータ抽出、分析、変換、操作のための高性能な Python ライブラリです。" |
| 31 |
|
| 32 |
#: ../../header.rst:-1 db64d0baaca745e7910c08e63ef36441 |
| 33 |
msgid "" |
| 34 |
"PDF Text Extraction, PDF Image Extraction, PDF Conversion, PDF Tables, " |
| 35 |
"PDF Splitting, PDF Creation, Pyodide, PyScript" |
| 36 |
msgstr "PDFテキスト抽出、PDFイメージ抽出、PDF変換、PDFテーブル、PDF分割、PDF作成, Pyodide, PyScript" |
| 37 |
|
| 38 |
#: ../../pixmap.rst:7 e0494509a30b4c1991cc5e57de63e15b |
| 39 |
msgid "Pixmap" |
| 40 |
msgstr "" |
| 41 |
|
| 42 |
#: ../../pixmap.rst:9 32dd6915408a408ea1d9db1812927e46 |
| 43 |
msgid "" |
| 44 |
"Pixmaps (\"pixel maps\") are objects at the heart of MuPDF's rendering " |
| 45 |
"capabilities. They represent plane rectangular sets of pixels. Each pixel" |
| 46 |
" is described by a number of bytes (\"components\") defining its color, " |
| 47 |
"plus an optional alpha byte defining its transparency." |
| 48 |
msgstr "Pixmap(「ピクセルマップ」)は、MuPDFの描画機能の中心にあるオブジェクトです。それらは平面的な長方形のピクセルセットを表します。各ピクセルは、その色を定義するバイト数(「コンポーネント」)と、透明度を定義するオプションのアルファバイトで説明されます" |
| 49 |
|
| 50 |
#: ../../pixmap.rst:11 0ae7623584d34b0793a6b1689e2e9ff9 |
| 51 |
msgid "" |
| 52 |
"In PyMuPDF, there exist several ways to create a pixmap. Except the first" |
| 53 |
" one, all of them are available as overloaded constructors. A pixmap can " |
| 54 |
"be created ..." |
| 55 |
msgstr "PyMuPDFでは、ピクセルマップを作成するためのいくつかの方法が存在します。最初の方法を除いて、すべての方法はオーバーロードされたコンストラクタとして使用できます。ピクセルマップは、以下の方法で作成できます..." |
| 56 |
|
| 57 |
#: ../../pixmap.rst:13 73ba045692a74b84a13ce27f369588ef |
| 58 |
msgid "from a document page (method :meth:`Page.get_pixmap`)" |
| 59 |
msgstr "ドキュメントページから(メソッド :meth:`Page.get_pixmap` を使用)" |
| 60 |
|
| 61 |
#: ../../pixmap.rst:14 d9db8727d6f34c5ea67a95212b48a901 |
| 62 |
msgid "empty, based on :ref:`Colorspace` and :ref:`IRect` information" |
| 63 |
msgstr ":ref:`Colorspace` と :ref:`IRect` 情報に基づいて空のものを作成" |
| 64 |
|
| 65 |
#: ../../pixmap.rst:15 3bd37a5d119449b79b2df8e6183899b2 |
| 66 |
msgid "from a file" |
| 67 |
msgstr "ファイルから" |
| 68 |
|
| 69 |
#: ../../pixmap.rst:16 6c2ae5d2cf9e4e9c8a85876940ac2c65 |
| 70 |
msgid "from an in-memory image" |
| 71 |
msgstr "メモリ内のイメージから" |
| 72 |
|
| 73 |
#: ../../pixmap.rst:17 985854117e77421ab5c08305ad9a7ebc |
| 74 |
msgid "from a memory area of plain pixels" |
| 75 |
msgstr "平易なピクセルのメモリ領域から" |
| 76 |
|
| 77 |
#: ../../pixmap.rst:18 51817c0b224a4d79becc251812e52d59 |
| 78 |
msgid "from an image inside a PDF document" |
| 79 |
msgstr "PDFドキュメント内のイメージから" |
| 80 |
|
| 81 |
#: ../../pixmap.rst:19 c50a8dabd5de4315af9f49bd6f4e3300 |
| 82 |
msgid "as a copy of another pixmap" |
| 83 |
msgstr "他のピクセルマップのコピーとして" |
| 84 |
|
| 85 |
#: ../../pixmap.rst:21 a40603d11eae465f98c51d914e3f60f0 |
| 86 |
msgid "" |
| 87 |
"A number of image formats is supported as input for points 3. and 4. " |
| 88 |
"above. See section :ref:`ImageFiles`." |
| 89 |
msgstr "" |
| 90 |
"3.と4.のポイントに対する入力として多くの画像フォーマットがサポートされています。サポートされている入力画像フォーマットの詳細については、:ref:`ImageFiles`" |
| 91 |
" のセクションを参照してください。" |
| 92 |
|
| 93 |
#: ../../pixmap.rst:23 3bdce298316f4c59aea2dcf926ba360d |
| 94 |
msgid "" |
| 95 |
"Have a look at the :ref:`FAQ` section to see some pixmap usage \"at " |
| 96 |
"work\"." |
| 97 |
msgstr "ピクセルマップの使用例については、:ref:`FAQ` セクションをご覧ください。" |
| 98 |
|
| 99 |
#: ../../pixmap.rst:26 c77d9f0a0ac441569275429f77da5352 |
| 100 |
msgid "**Method / Attribute**" |
| 101 |
msgstr "**メソッド / 属性**" |
| 102 |
|
| 103 |
#: ../../pixmap.rst:26 0c5aa62f906e4af38c4f3f15dbd58acb |
| 104 |
msgid "**Short Description**" |
| 105 |
msgstr "**短い説明**" |
| 106 |
|
| 107 |
#: ../../pixmap.rst:28 2202b52b548143ffb14aef4ce3088e4e |
| 108 |
msgid ":meth:`Pixmap.clear_with`" |
| 109 |
msgstr "" |
| 110 |
|
| 111 |
#: ../../pixmap.rst:28 f8c6fd586d294e3194f9966984db1cd7 |
| 112 |
msgid "clear parts of the pixmap" |
| 113 |
msgstr "ピクセルマップの一部をクリアします。" |
| 114 |
|
| 115 |
#: ../../pixmap.rst:29 74887257fa9a4ce4bccdc2c054561ab8 |
| 116 |
msgid ":meth:`Pixmap.color_count`" |
| 117 |
msgstr "" |
| 118 |
|
| 119 |
#: ../../pixmap.rst:29 266d94deb7124050adc51b2d0925c285 |
| 120 |
msgid "determine used colors" |
| 121 |
msgstr "使用された色を決定します。" |
| 122 |
|
| 123 |
#: ../../pixmap.rst:30 6fa71e0e57754c778d2a793a2d4b5e0c |
| 124 |
msgid ":meth:`Pixmap.color_topusage`" |
| 125 |
msgstr "" |
| 126 |
|
| 127 |
#: ../../pixmap.rst:30 40a15ae449a04a5fa2c777c1ac0a6175 |
| 128 |
msgid "determine share of most used color" |
| 129 |
msgstr "最も使用される色のシェアを決定します。" |
| 130 |
|
| 131 |
#: ../../pixmap.rst:31 b915ce033980496eb00292ada4fbcca5 |
| 132 |
msgid ":meth:`Pixmap.copy`" |
| 133 |
msgstr "" |
| 134 |
|
| 135 |
#: ../../pixmap.rst:31 8e57cd2829fa414abc482e80c6d4c4d9 |
| 136 |
msgid "copy parts of another pixmap" |
| 137 |
msgstr "別のピクセルマップの一部をコピーします。" |
| 138 |
|
| 139 |
#: ../../pixmap.rst:32 112981a34c4348f8ad862d81cdc02514 |
| 140 |
msgid ":meth:`Pixmap.gamma_with`" |
| 141 |
msgstr "" |
| 142 |
|
| 143 |
#: ../../pixmap.rst:32 f42a9b37c4ac4000a006188d993c87e5 |
| 144 |
msgid "apply a gamma factor to the pixmap" |
| 145 |
msgstr "ピクセルマップにガンマ係数を適用します。" |
| 146 |
|
| 147 |
#: ../../pixmap.rst:33 01c950df9e2145aa8d39d7760c67ad87 |
| 148 |
msgid ":meth:`Pixmap.invert_irect`" |
| 149 |
msgstr "" |
| 150 |
|
| 151 |
#: ../../pixmap.rst:33 8fd44b50652147ff824e5fc414ff6a30 |
| 152 |
msgid "invert the pixels of a given area" |
| 153 |
msgstr "指定された領域のピクセルを反転させます。" |
| 154 |
|
| 155 |
#: ../../pixmap.rst:34 516fe80e3c4a459a81a150dc6a462f8e |
| 156 |
msgid ":meth:`Pixmap.pdfocr_save`" |
| 157 |
msgstr "" |
| 158 |
|
| 159 |
#: ../../pixmap.rst:34 ../../pixmap.rst:35 67e410a8f8c842c1944b038c5708de2d |
| 160 |
#: f38b40a1d99c4c509644c872d19b87e2 |
| 161 |
msgid "save the pixmap as an OCRed 1-page PDF" |
| 162 |
msgstr "OCR処理済みの1ページのPDFとしてピクセルマップを保存します。" |
| 163 |
|
| 164 |
#: ../../pixmap.rst:35 be86eecb9ae84058896ab1db4a2fcab1 |
| 165 |
msgid ":meth:`Pixmap.pdfocr_tobytes`" |
| 166 |
msgstr "" |
| 167 |
|
| 168 |
#: ../../pixmap.rst:36 b0881e3fa8064b569e1476c50325b3d7 |
| 169 |
msgid ":meth:`Pixmap.pil_image`" |
| 170 |
msgstr "" |
| 171 |
|
| 172 |
#: ../../pixmap.rst:36 6075a73ecdcb46979d4b836f39403d5f |
| 173 |
msgid "create a Pillow Image" |
| 174 |
msgstr "" |
| 175 |
|
| 176 |
#: ../../pixmap.rst:37 c71cca896c4e47509c4fa0e362fa044c |
| 177 |
msgid ":meth:`Pixmap.pil_save`" |
| 178 |
msgstr "" |
| 179 |
|
| 180 |
#: ../../pixmap.rst:37 4be536342cb047aeb0a6b64adbba1e9a |
| 181 |
#, fuzzy |
| 182 |
msgid "save as a Pillow Image" |
| 183 |
msgstr "Pillowを使用してイメージとして保存します。" |
| 184 |
|
| 185 |
#: ../../pixmap.rst:38 52b8400d5cce434b87e23399f61d2117 |
| 186 |
msgid ":meth:`Pixmap.pil_tobytes`" |
| 187 |
msgstr "" |
| 188 |
|
| 189 |
#: ../../pixmap.rst:38 bafc4631127f4561936ab5d1e6403a2d |
| 190 |
#, fuzzy |
| 191 |
msgid "write to `bytes` as a Pillow Image" |
| 192 |
msgstr "Pillowを使用してバイトオブジェクトに書き込みます。" |
| 193 |
|
| 194 |
#: ../../pixmap.rst:39 4002db687ffc4feabe3a41f2274b7804 |
| 195 |
msgid ":meth:`Pixmap.pixel`" |
| 196 |
msgstr "" |
| 197 |
|
| 198 |
#: ../../pixmap.rst:39 efb78dfb56524049a7580e3a15723114 |
| 199 |
msgid "return the value of a pixel" |
| 200 |
msgstr "ピクセルの値を返します。" |
| 201 |
|
| 202 |
#: ../../pixmap.rst:40 e0ffa2a456944476bb6984b064566f95 |
| 203 |
msgid ":meth:`Pixmap.save`" |
| 204 |
msgstr "" |
| 205 |
|
| 206 |
#: ../../pixmap.rst:40 7f4131a6b70d41cd802f09e3f4f6f11f |
| 207 |
msgid "save the pixmap in a variety of formats" |
| 208 |
msgstr "さまざまな形式でピクセルマップを保存します。" |
| 209 |
|
| 210 |
#: ../../pixmap.rst:41 23956dccd6e94052aef51929b1c393dc |
| 211 |
msgid ":meth:`Pixmap.set_alpha`" |
| 212 |
msgstr "" |
| 213 |
|
| 214 |
#: ../../pixmap.rst:41 3979119c35f341c694e03dd5db7a0115 |
| 215 |
msgid "set alpha values" |
| 216 |
msgstr "アルファ値を設定します。" |
| 217 |
|
| 218 |
#: ../../pixmap.rst:42 80aa084bf73c4f61abbf2f808d42bdcd |
| 219 |
msgid ":meth:`Pixmap.set_dpi`" |
| 220 |
msgstr "" |
| 221 |
|
| 222 |
#: ../../pixmap.rst:42 881510d8c71545b59d91fb5dac173605 |
| 223 |
msgid "set the image resolution" |
| 224 |
msgstr "イメージの解像度を設定します。" |
| 225 |
|
| 226 |
#: ../../pixmap.rst:43 af00886d005e4a1890d7b7789b93e7e7 |
| 227 |
msgid ":meth:`Pixmap.set_origin`" |
| 228 |
msgstr "" |
| 229 |
|
| 230 |
#: ../../pixmap.rst:43 7e6045d9838046cea1cd1fcb38a15dab |
| 231 |
msgid "set pixmap x,y values" |
| 232 |
msgstr "ピクセルマップのx、y値を設定します。" |
| 233 |
|
| 234 |
#: ../../pixmap.rst:44 cb25eecee8af4917ab427d3cf303152f |
| 235 |
msgid ":meth:`Pixmap.set_pixel`" |
| 236 |
msgstr "" |
| 237 |
|
| 238 |
#: ../../pixmap.rst:44 23d1909be60a4b269aaec2547ae2aa05 |
| 239 |
msgid "set color and alpha of a pixel" |
| 240 |
msgstr "ピクセルの色とアルファを設定します。" |
| 241 |
|
| 242 |
#: ../../pixmap.rst:45 72b4d710dc894939936c377380bbc22e |
| 243 |
msgid ":meth:`Pixmap.set_rect`" |
| 244 |
msgstr "" |
| 245 |
|
| 246 |
#: ../../pixmap.rst:45 0f7af78460a4450da9d9108517b4d4c4 |
| 247 |
msgid "set color and alpha of all pixels in a rectangle" |
| 248 |
msgstr "四角形内のすべてのピクセルの色とアルファを設定します。" |
| 249 |
|
| 250 |
#: ../../pixmap.rst:46 b791b993ad61409eaef1d0b360847ffc |
| 251 |
msgid ":meth:`Pixmap.shrink`" |
| 252 |
msgstr "" |
| 253 |
|
| 254 |
#: ../../pixmap.rst:46 38e21b2c7aa8493e8bb7266e1e835f69 |
| 255 |
msgid "reduce size keeping proportions" |
| 256 |
msgstr "比率を保持しながらサイズを縮小します。" |
| 257 |
|
| 258 |
#: ../../pixmap.rst:47 be56d7fc15e24cf2826c82badd69df56 |
| 259 |
msgid ":meth:`Pixmap.tint_with`" |
| 260 |
msgstr "" |
| 261 |
|
| 262 |
#: ../../pixmap.rst:47 d5a1e740218c41ceb31d912cae43599f |
| 263 |
msgid "tint the pixmap" |
| 264 |
msgstr "ピクセルマップに色調を付けます。" |
| 265 |
|
| 266 |
#: ../../pixmap.rst:48 408bd07e5e004c53845a34ccb73684f6 |
| 267 |
msgid ":meth:`Pixmap.tobytes`" |
| 268 |
msgstr "" |
| 269 |
|
| 270 |
#: ../../pixmap.rst:48 dbfd2cd88a2e40689877d688108593b5 |
| 271 |
msgid "return a memory area in a variety of formats" |
| 272 |
msgstr "さまざまな形式のメモリ領域を返します。" |
| 273 |
|
| 274 |
#: ../../pixmap.rst:49 73ad7e8e412146939a933bc554653bd9 |
| 275 |
msgid ":meth:`Pixmap.warp`" |
| 276 |
msgstr "" |
| 277 |
|
| 278 |
#: ../../pixmap.rst:49 27dcdd34ccd6434c8be2f3d0cab9f361 |
| 279 |
msgid "return a pixmap made from a quad inside" |
| 280 |
msgstr "内部の四角形から作成されたピクセルマップを返します。" |
| 281 |
|
| 282 |
#: ../../pixmap.rst:50 85defbb4523445e9bfc92785c42fcb0b |
| 283 |
msgid ":attr:`Pixmap.alpha`" |
| 284 |
msgstr "" |
| 285 |
|
| 286 |
#: ../../pixmap.rst:50 f9f7e74d1a854ce584726e3236d915a4 |
| 287 |
msgid "transparency indicator" |
| 288 |
msgstr "透明度指示子" |
| 289 |
|
| 290 |
#: ../../pixmap.rst:51 fbf1760092864dcf8f5566ac85074c05 |
| 291 |
msgid ":attr:`Pixmap.colorspace`" |
| 292 |
msgstr "" |
| 293 |
|
| 294 |
#: ../../pixmap.rst:51 48b501a974724e6cadfe58ebbfebeb9a |
| 295 |
msgid "pixmap's :ref:`Colorspace`" |
| 296 |
msgstr "ピクセルマップの :ref:`Colorspace`" |
| 297 |
|
| 298 |
#: ../../pixmap.rst:52 b766c11c9d60491bb1cd9e4c8cfd9751 |
| 299 |
msgid ":attr:`Pixmap.digest`" |
| 300 |
msgstr "" |
| 301 |
|
| 302 |
#: ../../pixmap.rst:52 3d7b532618f3451896efe2d64d4ffdfe |
| 303 |
msgid "MD5 hashcode of the pixmap" |
| 304 |
msgstr "ピクセルマップのMD5ハッシュコード" |
| 305 |
|
| 306 |
#: ../../pixmap.rst:53 76675540ad27482bada64b6a598d25f9 |
| 307 |
msgid ":attr:`Pixmap.height`" |
| 308 |
msgstr "" |
| 309 |
|
| 310 |
#: ../../pixmap.rst:53 3c22531079e34fa79dddc4e586d958e6 |
| 311 |
msgid "pixmap height" |
| 312 |
msgstr "ピクセルマップの高さ" |
| 313 |
|
| 314 |
#: ../../pixmap.rst:54 9182d024c67b490b9fe7855b4f5715d0 |
| 315 |
msgid ":attr:`Pixmap.interpolate`" |
| 316 |
msgstr "" |
| 317 |
|
| 318 |
#: ../../pixmap.rst:54 3688b5e0286840669d320a95bc5a17fb |
| 319 |
msgid "interpolation method indicator" |
| 320 |
msgstr "補間メソッド指示子" |
| 321 |
|
| 322 |
#: ../../pixmap.rst:55 b7b0a90b1ba846e89b22db0ed4553281 |
| 323 |
msgid ":attr:`Pixmap.is_monochrome`" |
| 324 |
msgstr "" |
| 325 |
|
| 326 |
#: ../../pixmap.rst:55 df352c76b67546089f124cbd0e5babb1 |
| 327 |
msgid "check if only black and white occur" |
| 328 |
msgstr "黒と白だけが存在するか確認します。" |
| 329 |
|
| 330 |
#: ../../pixmap.rst:56 a17ad0a90a7d413c9fb8b1aa83257598 |
| 331 |
msgid ":attr:`Pixmap.is_unicolor`" |
| 332 |
msgstr "" |
| 333 |
|
| 334 |
#: ../../pixmap.rst:56 81dfed8a598641f6ae936549b0e7f7ba |
| 335 |
msgid "check if only one color occurs" |
| 336 |
msgstr "単一の色しか存在しないか確認します。" |
| 337 |
|
| 338 |
#: ../../pixmap.rst:57 abd7ff4e70754c9daef32d9525250608 |
| 339 |
msgid ":attr:`Pixmap.irect`" |
| 340 |
msgstr "" |
| 341 |
|
| 342 |
#: ../../pixmap.rst:57 2791b580e848470a814a376d6e220255 |
| 343 |
msgid ":ref:`IRect` of the pixmap" |
| 344 |
msgstr "ピクセルマップの :ref:`IRect` " |
| 345 |
|
| 346 |
#: ../../pixmap.rst:58 2fec6f3a895d4409b0e482a40f200f22 |
| 347 |
msgid ":attr:`Pixmap.n`" |
| 348 |
msgstr "" |
| 349 |
|
| 350 |
#: ../../pixmap.rst:58 c7b79f65d4494cdb897cc22abe8eff21 |
| 351 |
msgid "bytes per pixel" |
| 352 |
msgstr "ピクセルごとのバイト数" |
| 353 |
|
| 354 |
#: ../../pixmap.rst:59 743bc8e881d44773b5fcf7beffc6a3fa |
| 355 |
msgid ":attr:`Pixmap.samples_mv`" |
| 356 |
msgstr "" |
| 357 |
|
| 358 |
#: ../../pixmap.rst:59 4179ce00d1e746b295e577083af074b0 |
| 359 |
msgid "`memoryview` of pixel area" |
| 360 |
msgstr "ピクセル領域の `memoryview` " |
| 361 |
|
| 362 |
#: ../../pixmap.rst:60 c5ff63d0faaa4137832a944521ce8069 |
| 363 |
msgid ":attr:`Pixmap.samples_ptr`" |
| 364 |
msgstr "" |
| 365 |
|
| 366 |
#: ../../pixmap.rst:60 8116e2e6a5fe470082d7fbdca4673935 |
| 367 |
msgid "Python pointer to pixel area" |
| 368 |
msgstr "ピクセル領域へのPythonポインタ" |
| 369 |
|
| 370 |
#: ../../pixmap.rst:61 2abc33dc84a348c6ad9b8da90c57e531 |
| 371 |
msgid ":attr:`Pixmap.samples`" |
| 372 |
msgstr "" |
| 373 |
|
| 374 |
#: ../../pixmap.rst:61 060cb94948d84088a5cf7c6d4319fea3 |
| 375 |
msgid "`bytes` copy of pixel area" |
| 376 |
msgstr "ピクセル領域の `bytes` コピー" |
| 377 |
|
| 378 |
#: ../../pixmap.rst:62 d41ed2ab508249d0ae96e3145e92258b |
| 379 |
msgid ":attr:`Pixmap.size`" |
| 380 |
msgstr "" |
| 381 |
|
| 382 |
#: ../../pixmap.rst:62 cfe014376f9745ea9c2ce0e7a11bb369 |
| 383 |
msgid "pixmap's total length" |
| 384 |
msgstr "ピクセルマップの合計長さ" |
| 385 |
|
| 386 |
#: ../../pixmap.rst:63 34fea4631d014515b7406f2f5bb813bc |
| 387 |
msgid ":attr:`Pixmap.stride`" |
| 388 |
msgstr "" |
| 389 |
|
| 390 |
#: ../../pixmap.rst:63 5a29f36af34340aea9cba617eed85cc6 |
| 391 |
msgid "size of one image row" |
| 392 |
msgstr "1つの画像行のサイズ" |
| 393 |
|
| 394 |
#: ../../pixmap.rst:64 62ed9c389676438299a427713f0f7b08 |
| 395 |
msgid ":attr:`Pixmap.width`" |
| 396 |
msgstr "" |
| 397 |
|
| 398 |
#: ../../pixmap.rst:64 70e7618e0783483ea97302b042784152 |
| 399 |
msgid "pixmap width" |
| 400 |
msgstr "ピクセルマップの幅" |
| 401 |
|
| 402 |
#: ../../pixmap.rst:65 e62961e6786e48c796a2e5a23a76654f |
| 403 |
msgid ":attr:`Pixmap.x`" |
| 404 |
msgstr "" |
| 405 |
|
| 406 |
#: ../../pixmap.rst:65 4e8faa2fe6154453bf50951bfbcbfa0e |
| 407 |
msgid "X-coordinate of top-left corner" |
| 408 |
msgstr "左上隅のX座標" |
| 409 |
|
| 410 |
#: ../../pixmap.rst:66 d69ccf0ae1844b88aaff3eb7fbfa1973 |
| 411 |
msgid ":attr:`Pixmap.xres`" |
| 412 |
msgstr "" |
| 413 |
|
| 414 |
#: ../../pixmap.rst:66 a1ecbc77214845fea2e4c6cee89a8ce8 |
| 415 |
msgid "resolution in X-direction" |
| 416 |
msgstr "X方向の解像度" |
| 417 |
|
| 418 |
#: ../../pixmap.rst:67 83ca1188acde43af9c9f6c742f8c9fcb |
| 419 |
msgid ":attr:`Pixmap.y`" |
| 420 |
msgstr "" |
| 421 |
|
| 422 |
#: ../../pixmap.rst:67 b0432d623ef4473aa3515de8b215d9f5 |
| 423 |
msgid "Y-coordinate of top-left corner" |
| 424 |
msgstr "左上隅のY座標" |
| 425 |
|
| 426 |
#: ../../pixmap.rst:68 b704d755356e4e53903e4306cb1850d6 |
| 427 |
msgid ":attr:`Pixmap.yres`" |
| 428 |
msgstr "" |
| 429 |
|
| 430 |
#: ../../pixmap.rst:68 857aeb5083a44b1795d1ede13f95021f |
| 431 |
msgid "resolution in Y-direction" |
| 432 |
msgstr "Y方向の解像度" |
| 433 |
|
| 434 |
#: ../../pixmap.rst:71 a006e37a45ad4ed88da3603714dc9820 |
| 435 |
msgid "**Class API**" |
| 436 |
msgstr "**クラスAPI**" |
| 437 |
|
| 438 |
#: ../../pixmap.rst:77 046bff7f68fe47dc89b42ec79b63be49 |
| 439 |
msgid "" |
| 440 |
"**New empty pixmap:** Create an empty pixmap of size and origin given by " |
| 441 |
"the rectangle. So, *irect.top_left* designates the top left corner of the" |
| 442 |
" pixmap, and its width and height are *irect.width* resp. *irect.height*." |
| 443 |
" Note that the image area is **not initialized** and will contain crap " |
| 444 |
"data -- use eg. :meth:`clear_with` or :meth:`set_rect` to be sure." |
| 445 |
msgstr "" |
| 446 |
"**新しい空のピクマップ:** 指定された矩形のサイズと原点を持つ空のピクマップを作成します。したがって、*irect.top_left* " |
| 447 |
"はピクマップの左上隅を示し、その幅と高さは *irect.width* および *irect.height* です。イメージ領域は " |
| 448 |
"**初期化されず** 、データが格納されます。データを初期化するには、:meth:`clear_with` や :meth:`set_rect` " |
| 449 |
"などを使用してください。" |
| 450 |
|
| 451 |
#: ../../pixmap.rst 02b0fea3d9c34817aad000ad9f071590 |
| 452 |
#: 054aba92b788492e988045fb104e4481 0eb0df83e45a406cb560af5072cdff86 |
| 453 |
#: 2d9ab2f5c1024f7085600fc7ec9dc603 42fca49eb0844237a0b14c72c95e7dbc |
| 454 |
#: 4c84fc0dcb054b659ed6e2dae1b27605 57542313cdbd47cc89f43d9329495cb5 |
| 455 |
#: 610dfac6df044219bea31b4eb7ef6b47 63f20c0df7eb4be8be807f287c781d58 |
| 456 |
#: 67a50e42c1294501bb59b8b035850481 687444f1e3dc45509b4ec2a7192c0a48 |
| 457 |
#: 73fe0913c7364c31916311fc0cffc16e 7e25b63146fa45858f1ff6b966a16913 |
| 458 |
#: 8b3e2416c26c445bb9979be602f6adf5 95824bfb86ff41de835e47b77393048f |
| 459 |
#: a5c5caaf10934649be3b74635eb16787 af618a04af8e40efa6512d296a27fb9b |
| 460 |
#: bdfbcea144bd4cfb93f787f52dfadf48 c7f77794bd054561aa08e0b18497e5bd |
| 461 |
#: d044792ccaea48328805a0a6efd678c9 d625b8ee73b34a459873edc513b40002 |
| 462 |
#: d81abb686bb542518846ad32bd035b5e dd1276958278455fb3ad0d1ad3b08045 |
| 463 |
#: dd4e9e5837dc4c1eb17ec63c8681b4d4 e60d8f4e03c24b918ad9bdf22e21adb0 |
| 464 |
#: f1bff3e4b66c4afca6ae66a014ac0fc1 f2e0f5d755134588846f75c89c28b5af |
| 465 |
#: f8a2e37bd2ef4ca79bf827a1a3fe8e70 |
| 466 |
msgid "Parameters" |
| 467 |
msgstr "" |
| 468 |
|
| 469 |
#: ../../pixmap.rst:79 56321802a9014c348fa2d20d4294c9f2 |
| 470 |
msgid "colorspace." |
| 471 |
msgstr "カラースペース。" |
| 472 |
|
| 473 |
#: ../../pixmap.rst:82 3753a76b227f496eb369ca2d40057f0c |
| 474 |
msgid "The pixmap's position and dimension." |
| 475 |
msgstr "ピクマップの位置と寸法。" |
| 476 |
|
| 477 |
#: ../../pixmap.rst:84 0f1256f4866c4a888d73cefe035cfb17 |
| 478 |
msgid "" |
| 479 |
"Specifies whether transparency bytes should be included. Default is " |
| 480 |
"``False``." |
| 481 |
msgstr "透明度バイトを含めるかどうかを指定します。デフォルトは ``False`` です。" |
| 482 |
|
| 483 |
#: ../../pixmap.rst:88 b9326c334f6345fdaf185501bfa27892 |
| 484 |
msgid "" |
| 485 |
"**Copy and set colorspace:** Copy *source* pixmap converting colorspace. " |
| 486 |
"Any colorspace combination is possible, but source colorspace must not be" |
| 487 |
" ``None``." |
| 488 |
msgstr "" |
| 489 |
"**コピーとカラースペースの設定:** カラースペースを変換しながら *ソース* " |
| 490 |
"ピクマップをコピーします。どのカラースペースの組み合わせでも可能ですが、ソースカラースペースは ``None`` であってはいけません。" |
| 491 |
|
| 492 |
#: ../../pixmap.rst:90 97014f607fba4a5cb553297120c90034 |
| 493 |
msgid "" |
| 494 |
"desired **target** colorspace. This **may also be** ``None``. In this " |
| 495 |
"case, a \"masking\" pixmap is created: its :attr:`Pixmap.samples` will " |
| 496 |
"consist of the source's alpha bytes only." |
| 497 |
msgstr "" |
| 498 |
"**ターゲット** となるカラースペース。これは ``None`` **である場合もあります** 。この場合、 \"マスク\" " |
| 499 |
"ピクマップが作成されます。その :attr:`Pixmap.samples` は、ソースのアルファバイトだけで構成されます。" |
| 500 |
|
| 501 |
#: ../../pixmap.rst:93 ../../pixmap.rst:112 36ef86e1d48d4c5a9dd2bf95b2fd7b14 |
| 502 |
#: 52423174b9b746d2840bdc738fa82069 |
| 503 |
msgid "the source pixmap." |
| 504 |
msgstr "ソースピクマップ。" |
| 505 |
|
| 506 |
#: ../../pixmap.rst:98 1df405a79ae244d1a01b677a84951540 |
| 507 |
msgid "New in v1.18.18" |
| 508 |
msgstr "バージョン 1.18.18 で新規追加" |
| 509 |
|
| 510 |
#: ../../pixmap.rst:100 dac52c1c940a488587523e971b8678bb |
| 511 |
msgid "" |
| 512 |
"**Copy and add image mask:** Copy *source* pixmap, add an alpha channel " |
| 513 |
"with transparency data from a mask pixmap." |
| 514 |
msgstr "**コピーとイメージマスクの追加:** ソースピクマップをコピーし、マスクピクマップから透明度データを持つアルファチャネルを追加します。" |
| 515 |
|
| 516 |
#: ../../pixmap.rst:102 760c74ba53044cbcbdf31aee15f90bca |
| 517 |
msgid "pixmap without alpha channel." |
| 518 |
msgstr "アルファチャネルを持たないピクマップ。" |
| 519 |
|
| 520 |
#: ../../pixmap.rst:105 46e5c3640fcf48d382edee1c823984e6 |
| 521 |
msgid "a mask pixmap. Must be a graysale pixmap." |
| 522 |
msgstr "マスクピクマップ。グレースケールのピクマップである必要があります。" |
| 523 |
|
| 524 |
#: ../../pixmap.rst:110 d9ec3e84c0ea4239b426990e4164290e |
| 525 |
msgid "" |
| 526 |
"**Copy and scale:** Copy *source* pixmap, scaling new width and height " |
| 527 |
"values -- the image will appear stretched or shrunk accordingly. Supports" |
| 528 |
" partial copying. The source colorspace may be ``None``." |
| 529 |
msgstr "" |
| 530 |
"**コピーとスケーリング:** " |
| 531 |
"ソースピクマップをコピーし、新しい幅と高さの値にスケーリングします。イメージはそれに応じてストレッチまたは縮小されます。部分的なコピーをサポートしています。ソースカラースペースは" |
| 532 |
" ``None`` であってもかまいません。" |
| 533 |
|
| 534 |
#: ../../pixmap.rst:115 682ea20bf52b4efe901eaeac97e98829 |
| 535 |
msgid "desired target width." |
| 536 |
msgstr "ターゲットの幅。" |
| 537 |
|
| 538 |
#: ../../pixmap.rst:117 3bf8da6692aa4465bad88ed923353c01 |
| 539 |
msgid "desired target height." |
| 540 |
msgstr "ターゲットの高さ。" |
| 541 |
|
| 542 |
#: ../../pixmap.rst:119 7aa6286551464fc79c589f402e5f4064 |
| 543 |
msgid "restrict the resulting pixmap to this region of the **scaled** pixmap." |
| 544 |
msgstr "**スケーリングされた** ピクマップのこの領域に制限します。" |
| 545 |
|
| 546 |
#: ../../pixmap.rst:121 3be7525712a64bad8e5cc168ff57efeb |
| 547 |
msgid "" |
| 548 |
"If width or height do not *represent* integers (i.e. `value.is_integer() " |
| 549 |
"!= True`), then the resulting pixmap **will have an alpha channel**." |
| 550 |
msgstr "" |
| 551 |
"幅または高さが整数を *表していない* 場合(つまり、`value.is_integer() != True` の場合)、結果のピクマップには " |
| 552 |
"**アルファチャンネルが含まれます** 。" |
| 553 |
|
| 554 |
#: ../../pixmap.rst:125 fcd3877dc9924a5098cb10a1fec25153 |
| 555 |
msgid "" |
| 556 |
"**Copy and add or drop alpha:** Copy *source* and add or drop its alpha " |
| 557 |
"channel. Identical copy if *alpha* equals *source.alpha*. If an alpha " |
| 558 |
"channel is added, its values will be set to 255." |
| 559 |
msgstr "" |
| 560 |
"**コピーしてアルファの追加または削除:** *ソース* をコピーし、そのアルファチャンネルを追加または削除します。*alpha* が " |
| 561 |
"*source.alpha* と等しい場合、同一のコピーになります。アルファチャンネルが追加される場合、その値は255に設定されます。" |
| 562 |
|
| 563 |
#: ../../pixmap.rst:127 ../../pixmap.rst:305 29341e581eda460c9963b056957f0057 |
| 564 |
#: 6755e67f1ebd4c6397a96a8387727fc0 |
| 565 |
msgid "source pixmap." |
| 566 |
msgstr "ソースのピクマップ。" |
| 567 |
|
| 568 |
#: ../../pixmap.rst:130 c616e3541c6f481680da4d95d038b5f5 |
| 569 |
msgid "" |
| 570 |
"whether the target will have an alpha channel, default and mandatory if " |
| 571 |
"source colorspace is ``None``." |
| 572 |
msgstr "対象にアルファチャンネルがあるかどうか、デフォルトで、ソースのcolorspaceが ``None`` の場合は必須です。" |
| 573 |
|
| 574 |
#: ../../pixmap.rst:132 df4cef61a1c149a39965a6f332bf9f2c |
| 575 |
msgid "" |
| 576 |
"A typical use includes separation of color and transparency bytes in " |
| 577 |
"separate pixmaps. Some applications require this like e.g. " |
| 578 |
"*wx.Bitmap.FromBufferAndAlpha()* of *wxPython*:" |
| 579 |
msgstr "" |
| 580 |
"典型的な使用例には、カラーと透明バイトを別々のピクマップに分離することが含まれます。一部のアプリケーションでは、*wxPython* の " |
| 581 |
"*wx.Bitmap.FromBufferAndAlpha()* など、これが必要です。" |
| 582 |
|
| 583 |
#: ../../pixmap.rst:142 154d69621fb94872a7ad34eae19ef7aa |
| 584 |
msgid "" |
| 585 |
"**From a file:** Create a pixmap from *filename*. All properties are " |
| 586 |
"inferred from the input. The origin of the resulting pixmap is *(0, 0)*." |
| 587 |
msgstr "" |
| 588 |
"**ファイルから:** ファイル名から pixmap を作成します。すべてのプロパティは入力から推測されます。生成される pixmap の原点は " |
| 589 |
"*(0, 0)* です。" |
| 590 |
|
| 591 |
#: ../../pixmap.rst:144 aedb335cf31242c6807afec841343b05 |
| 592 |
msgid "Path of the image file." |
| 593 |
msgstr "画像ファイルのパス。" |
| 594 |
|
| 595 |
#: ../../pixmap.rst:148 e21d860e62cb466b8dcd5c58ecd8816a |
| 596 |
msgid "" |
| 597 |
"**From memory:** Create a pixmap from a memory area. All properties are " |
| 598 |
"inferred from the input. The origin of the resulting pixmap is *(0, 0)*." |
| 599 |
msgstr "" |
| 600 |
"**メモリから:** メモリ領域から pixmap を作成します。すべてのプロパティは入力から推測されます。生成される pixmap の原点は " |
| 601 |
"*(0, 0)* です。" |
| 602 |
|
| 603 |
#: ../../pixmap.rst:150 74221d3aec5f41afae36e2b37ac8dfc7 |
| 604 |
msgid "" |
| 605 |
"Data containing a complete, valid image. Could have been created by e.g. " |
| 606 |
"*stream = bytearray(open('image.file', 'rb').read())*. Type *bytes* is " |
| 607 |
"supported in **Python 3 only**, because *bytes == str* in Python 2 and " |
| 608 |
"the method will interpret the stream as a filename. *Changed in version " |
| 609 |
"1.14.13:* *io.BytesIO* is now also supported." |
| 610 |
msgstr "" |
| 611 |
|
| 612 |
#: ../../pixmap.rst:150 e9ed395c0d8c4b56a458e072bbd347e0 |
| 613 |
msgid "" |
| 614 |
"Data containing a complete, valid image. Could have been created by e.g. " |
| 615 |
"*stream = bytearray(open('image.file', 'rb').read())*. Type *bytes* is " |
| 616 |
"supported in **Python 3 only**, because *bytes == str* in Python 2 and " |
| 617 |
"the method will interpret the stream as a filename." |
| 618 |
msgstr "" |
| 619 |
"完全で有効な画像を含むデータ。例えば、*stream = bytearray(open('image.file', 'rb').read())* " |
| 620 |
"などで作成できます。Python 2 では *bytes* はサポートされていないため、**Python 3 のみ** " |
| 621 |
"対応しています。なぜなら、Python 2 では *bytes == str* " |
| 622 |
"となり、このメソッドはストリームをファイル名と解釈する可能性があるからです。" |
| 623 |
|
| 624 |
#: ../../pixmap.rst:152 a162db2d5e5f46a092952a708f6e5469 |
| 625 |
msgid "*Changed in version 1.14.13:* *io.BytesIO* is now also supported." |
| 626 |
msgstr "*バージョン 1.14.13 で変更:* *io.BytesIO* もサポートされるようになりました。" |
| 627 |
|
| 628 |
#: ../../pixmap.rst:157 016950d3c686415a993d228b20deed87 |
| 629 |
msgid "" |
| 630 |
"**From plain pixels:** Create a pixmap from *samples*. Each pixel must be" |
| 631 |
" represented by a number of bytes as controlled by the *colorspace* and " |
| 632 |
"*alpha* parameters. The origin of the resulting pixmap is *(0, 0)*. This " |
| 633 |
"method is useful when raw image data are provided by some other program " |
| 634 |
"-- see :ref:`FAQ`." |
| 635 |
msgstr "" |
| 636 |
"**生のピクセルから:** *サンプル* から pixmap を作成します。各ピクセルは、*カラースペース* と *alpha* " |
| 637 |
"パラメーターによって制御されるバイト数で表現される必要があります。生成される pixmap の原点は *(0, 0)* " |
| 638 |
"です。このメソッドは、他のプログラムによって生の画像データが提供される場合に有用です - :ref:`FAQ` を参照してください。" |
| 639 |
|
| 640 |
#: ../../pixmap.rst:159 cda1965dbe524b2f958354d3bf86203d |
| 641 |
msgid "Colorspace of image." |
| 642 |
msgstr "画像のカラースペース。" |
| 643 |
|
| 644 |
#: ../../pixmap.rst:162 e4ca43e6639b433195a95bc4b9cff17c |
| 645 |
msgid "image width" |
| 646 |
msgstr "画像の幅" |
| 647 |
|
| 648 |
#: ../../pixmap.rst:164 e6bd73524bf443928467e7d153097052 |
| 649 |
msgid "image height" |
| 650 |
msgstr "画像の高さ" |
| 651 |
|
| 652 |
#: ../../pixmap.rst:166 bc04c5ee0a2f4c219321973a46ca1fec |
| 653 |
msgid "" |
| 654 |
"an area containing all pixels of the image. Must include alpha values if " |
| 655 |
"specified. *Changed in version 1.14.13:* (1) *io.BytesIO* can now also " |
| 656 |
"be used. (2) Data are now **copied** to the pixmap, so may safely be " |
| 657 |
"deleted or become unavailable." |
| 658 |
msgstr "" |
| 659 |
|
| 660 |
#: ../../pixmap.rst:166 882216b59426469ebf0fc58e1a590a22 |
| 661 |
msgid "" |
| 662 |
"an area containing all pixels of the image. Must include alpha values if " |
| 663 |
"specified." |
| 664 |
msgstr "画像のすべてのピクセルを含む領域。指定されている場合はアルファ値を含める必要があります。" |
| 665 |
|
| 666 |
#: ../../pixmap.rst:168 94da32783c284a7c9e5cd26b1aa7aead |
| 667 |
msgid "" |
| 668 |
"*Changed in version 1.14.13:* (1) *io.BytesIO* can now also be used. (2) " |
| 669 |
"Data are now **copied** to the pixmap, so may safely be deleted or become" |
| 670 |
" unavailable." |
| 671 |
msgstr "" |
| 672 |
"*バージョン 1.14.13 で変更:* (1) *io.BytesIO* も使用できるようになりました。 (2) データは pixmap に " |
| 673 |
"**コピーされる** ようになり、安全に削除または利用不可能になります。" |
| 674 |
|
| 675 |
#: ../../pixmap.rst:170 92e53d092aa1464db50b36eb7899219d |
| 676 |
msgid "whether a transparency channel is included." |
| 677 |
msgstr "透明チャネルを含めるかどうか。" |
| 678 |
|
| 679 |
#: ../../pixmap.rst:174 d35de668e91d424ebf94418d892dcbd6 |
| 680 |
msgid "" |
| 681 |
"The following equation **must be true**: *(colorspace.n + alpha) * width " |
| 682 |
"* height == len(samples)*." |
| 683 |
msgstr "" |
| 684 |
"以下の式が **成り立つ必要があります** : *(colorspace.n + alpha) * width * height == " |
| 685 |
"len(samples)*。" |
| 686 |
|
| 687 |
#: ../../pixmap.rst:175 1c597631a5304c869da76bb9d81e6ed9 |
| 688 |
msgid "" |
| 689 |
"Starting with version 1.14.13, the samples data are **copied** to the " |
| 690 |
"pixmap." |
| 691 |
msgstr "バージョン 1.14.13 以降、サンプルデータは pixmap に **コピーされます** 。" |
| 692 |
|
| 693 |
#: ../../pixmap.rst:180 5c8af01ebb9141c4b8de801dd3f3356e |
| 694 |
msgid "" |
| 695 |
"**From a PDF image:** Create a pixmap from an image **contained in PDF** " |
| 696 |
"*doc* identified by its :data:`xref`. All pimap properties are set by the" |
| 697 |
" image. Have a look at `extract-img1.py " |
| 698 |
"<https://github.com/pymupdf/PyMuPDF/tree/master/demo/extract-img1.py>`_ " |
| 699 |
"and `extract-img2.py <https://github.com/pymupdf/PyMuPDF/tree/master/demo" |
| 700 |
"/extract-img2.py>`_ to see how this can be used to recover all of a PDF's" |
| 701 |
" images." |
| 702 |
msgstr "" |
| 703 |
"**PDFイメージから:** PDFドキュメント内の :data:`xref` " |
| 704 |
"で識別されるイメージからピクスマップを作成します。ピクスマップのすべてのプロパティはイメージによって設定されます。これがどのように使用されるかを確認するには" |
| 705 |
"、`extract-img1.py <https://github.com/pymupdf/PyMuPDF/tree/master/demo" |
| 706 |
"/extract-img1.py>`_ と `extract-img2.py " |
| 707 |
"<https://github.com/pymupdf/PyMuPDF/tree/master/demo/extract-img2.py>`_ " |
| 708 |
"をご覧ください。これにより、PDFのすべてのイメージを復元できます。" |
| 709 |
|
| 710 |
#: ../../pixmap.rst:182 83027e8baba3428f9138b9272d50b7c5 |
| 711 |
msgid "an opened |PDF| document." |
| 712 |
msgstr "開かれた |PDF| ドキュメント。" |
| 713 |
|
| 714 |
#: ../../pixmap.rst:185 1d115e0cbe8d45c1a12b21ba961b218c |
| 715 |
msgid "" |
| 716 |
"the :data:`xref` of an image object. For example, you can make a list of " |
| 717 |
"images used on a particular page with :meth:`Document.get_page_images`, " |
| 718 |
"which also shows the :data:`xref` numbers of each image." |
| 719 |
msgstr "" |
| 720 |
"画像オブジェクトの :data:`xref`。たとえば、:meth:`Document.get_page_images` " |
| 721 |
"を使用して特定のページで使用されるすべてのイメージのリストを作成し、各イメージの :data:`xref` 番号も表示できます。" |
| 722 |
|
| 723 |
#: ../../pixmap.rst:189 af2a4e8f44da46f9b6b2a58073bb2cfc |
| 724 |
msgid "Initialize the samples area." |
| 725 |
msgstr "サンプル領域を初期化します。" |
| 726 |
|
| 727 |
#: ../../pixmap.rst:191 e9fa66fe4f434c59baeea5e2c721a40d |
| 728 |
msgid "" |
| 729 |
"if specified, values from 0 to 255 are valid. Each color byte of each " |
| 730 |
"pixel will be set to this value, while alpha will be set to 255 (non-" |
| 731 |
"transparent) if present. If omitted, then all bytes (including any alpha)" |
| 732 |
" are cleared to *0x00*." |
| 733 |
msgstr "" |
| 734 |
"指定された場合、0から255の値が有効です。各ピクセルの各カラーバイトはこの値に設定され、存在する場合はアルファが255(非透明)に設定されます。省略された場合、すべてのバイト(アルファを含む)が" |
| 735 |
" *0x00* にクリアされます。" |
| 736 |
|
| 737 |
#: ../../pixmap.rst:193 bb47605a216946dba119a8bf60a6dcdd |
| 738 |
msgid "" |
| 739 |
"the area to be cleared. Omit to clear the whole pixmap. Can only be " |
| 740 |
"specified, if *value* is also specified." |
| 741 |
msgstr "クリアする領域。ピクスマップ全体をクリアするには省略します。*value* も指定されている場合のみ指定できます。" |
| 742 |
|
| 743 |
#: ../../pixmap.rst:197 78bf5b67f38f46178532a1e37e7ddd72 |
| 744 |
msgid "" |
| 745 |
"Colorize a pixmap by replacing black and / or white with colors given as " |
| 746 |
"**sRGB integer** values. Only colorspaces :data:`CS_GRAY` and " |
| 747 |
":data:`CS_RGB` are supported, others are ignored with a warning." |
| 748 |
msgstr "" |
| 749 |
"ピクスマップを色付けして、黒と/または白を **sRGB整数値** として指定された色で置き換えます。:data:`CS_GRAY` と " |
| 750 |
":data:`CS_RGB` のカラースペースのみサポートされており、他のカラースペースは警告付きで無視されます。" |
| 751 |
|
| 752 |
#: ../../pixmap.rst:199 abae57d0723b4345a89b12f880d933fa |
| 753 |
msgid "" |
| 754 |
"If the colorspace is :data:`CS_GRAY`, the average *(red + green + " |
| 755 |
"blue)/3* will be taken. The pixmap will be changed in place." |
| 756 |
msgstr "カラースペースが :data:`CS_GRAY` の場合、平均(赤+緑+青)/3が取得されます。ピクスマップはその場で変更されます。" |
| 757 |
|
| 758 |
#: ../../pixmap.rst:201 04577dadbfbc43a3abbe3d997f6561ab |
| 759 |
msgid "replace black with this value. Specifying 0x000000 makes no changes." |
| 760 |
msgstr "黒をこの値で置き換えます。0x000000を指定しても変更はありません。" |
| 761 |
|
| 762 |
#: ../../pixmap.rst:202 43f498ae78e443a28b06bdcc72789414 |
| 763 |
msgid "replace white with this value. Specifying 0xFFFFFF makes no changes." |
| 764 |
msgstr "白をこの値で置き換えます。0xFFFFFFを指定しても変更はありません。" |
| 765 |
|
| 766 |
#: ../../pixmap.rst:204 391411e29bc24c0183271fc962fc85ae |
| 767 |
msgid "Examples:" |
| 768 |
msgstr "例:" |
| 769 |
|
| 770 |
#: ../../pixmap.rst:206 6e89c521384c4c5bbc9619d3efe8b909 |
| 771 |
msgid "`tint_with(0x000000, 0xFFFFFF)` is a no-op." |
| 772 |
msgstr "`tint_with(0x000000, 0xFFFFFF)` は操作なしです。" |
| 773 |
|
| 774 |
#: ../../pixmap.rst:207 64e6d46367ef4feca63cb7fb163d6b63 |
| 775 |
msgid "" |
| 776 |
"`tint_with(0x00FF00, 0xFFFFFF)` changes black to green, leaves white " |
| 777 |
"intact." |
| 778 |
msgstr "`tint_with(0x00FF00, 0xFFFFFF)` は黒を緑に変更し、白はそのままです。" |
| 779 |
|
| 780 |
#: ../../pixmap.rst:208 8ea3f30122264c92b50ec935ec42fc3c |
| 781 |
msgid "`tint_with(0xFF0000, 0x0000FF)` changes black to red and white to blue." |
| 782 |
msgstr "`tint_with(0xFF0000, 0x0000FF)` は黒を赤に変更し、白を青に変更します。" |
| 783 |
|
| 784 |
#: ../../pixmap.rst:213 ca2f9c12e08649b5870ae3ad64eacd72 |
| 785 |
msgid "" |
| 786 |
"Apply a gamma factor to a pixmap, i.e. lighten or darken it. Pixmaps with" |
| 787 |
" colorspace ``None`` are ignored with a warning." |
| 788 |
msgstr "ピクセルマップにガンマ係数を適用し、つまり明るくしたり暗くしたりします。色空間が ``None`` のピクセルマップは警告とともに無視されます。" |
| 789 |
|
| 790 |
#: ../../pixmap.rst:215 f4c36ad3313f4088882a49b8ff1847ec |
| 791 |
msgid "" |
| 792 |
"*gamma = 1.0* does nothing, *gamma < 1.0* lightens, *gamma > 1.0* darkens" |
| 793 |
" the image." |
| 794 |
msgstr "*gamma = 1.0* は何も行いません。*gamma < 1.0* は明るくし、*gamma > 1.0* は暗くします。" |
| 795 |
|
| 796 |
#: ../../pixmap.rst:219 8543630bd8134fbfbad3e241950d6cea |
| 797 |
#, fuzzy |
| 798 |
msgid "" |
| 799 |
"Shrink the pixmap by dividing both, its width and height by 2\\ " |
| 800 |
":sup:``n``." |
| 801 |
msgstr "Pixmapを2の :sup:`n` 乗で縮小します。" |
| 802 |
|
| 803 |
#: ../../pixmap.rst:221 30c7f5ad783249949e9748a49eb7d9f9 |
| 804 |
msgid "" |
| 805 |
"determines the new pixmap (samples) size. For example, a value of 2 " |
| 806 |
"divides width and height by 4 and thus results in a size of one 16\\ " |
| 807 |
":sup:`th` of the original. Values less than 1 are ignored with a warning." |
| 808 |
msgstr "新しいPixmap(サンプル)のサイズを決定します。例えば、値が2の場合、幅と高さを4分の1に分割し、元のサイズの16分の1のサイズになります。1未満の値は警告として無視されます。" |
| 809 |
|
| 810 |
#: ../../pixmap.rst:223 f45f17093df4420cb6fbc619648afd22 |
| 811 |
msgid "" |
| 812 |
"Use this methods to reduce a pixmap's size retaining its proportion. The " |
| 813 |
"pixmap is changed \"in place\". If you want to keep original and also " |
| 814 |
"have more granular choices, use the resp. copy constructor above." |
| 815 |
msgstr "これを使用して比を保持したままPixmapのサイズを縮小します。Pixmapは「その場で」変更されます。元のピクセルを保持し、より詳細な選択肢を持つ場合は、上記のコピーコンストラクタを使用してください。" |
| 816 |
|
| 817 |
#: ../../pixmap.rst:227 1455e6653c744eeba403a49f543d6fab |
| 818 |
msgid "" |
| 819 |
"*New in version:: 1.14.5:* Return the value of the pixel at location (x, " |
| 820 |
"y) (column, line)." |
| 821 |
msgstr "*バージョン1.14.5* で新規追加:位置(x、y)(列、行)のピクセルの値を返します。" |
| 822 |
|
| 823 |
#: ../../pixmap.rst:229 ../../pixmap.rst:239 4665e9dd65654240abe6ee77bae37183 |
| 824 |
#: ffb7d135ed9a41f1b4f0bfa146d6de82 |
| 825 |
msgid "the column number of the pixel. Must be in `range(pix.width)`." |
| 826 |
msgstr "ピクセルの列番号。範囲 `range(pix.width)` 内である必要があります。" |
| 827 |
|
| 828 |
#: ../../pixmap.rst:230 f1efa4c149644cc680d5348ad2c2e068 |
| 829 |
msgid "the line number of the pixel, Must be in `range(pix.height)`." |
| 830 |
msgstr "ピクセルの行番号、範囲 `range(pix.height)` 内である必要があります。" |
| 831 |
|
| 832 |
#: ../../pixmap.rst 369baee8d7234ef2ab7f82e75e9111ad |
| 833 |
#: a81a4cbd70ad4e0b8fb189a247cfcaaf b3a66cf736f24daea703147e167c320f |
| 834 |
#: cc865d958a3d4c81b2cbd3d3f814714b d2546977b027475993b2df887c1cb6e8 |
| 835 |
#: e81aa1c04aa6419da09b400752672904 eb0378b2f08a49a0af740a769d1a6087 |
| 836 |
msgid "Return type" |
| 837 |
msgstr "" |
| 838 |
|
| 839 |
#: ../../pixmap.rst 186871c10cae496984d33e4181c189b0 |
| 840 |
#: 24ba23b408644b24bd9aa5c5c7695c13 375a4a43a898465fa252490979e2f154 |
| 841 |
#: 44939b8c082c4f128aecb10f802bce36 8183d07de46a4c909fc8ff25a1c13b5e |
| 842 |
#: 82dd9565faa544cf8799ce6981d78e02 a7c02e0b9035405a9f75f61d1ef8a011 |
| 843 |
msgid "Returns" |
| 844 |
msgstr "" |
| 845 |
|
| 846 |
#: ../../pixmap.rst:233 1c117c2f7320435ab28104a0c9e6b3f0 |
| 847 |
msgid "" |
| 848 |
"a list of color values and, potentially the alpha value. Its length and " |
| 849 |
"content depend on the pixmap's colorspace and the presence of an alpha. " |
| 850 |
"For RGBA pixmaps the result would e.g. be *[r, g, b, a]*. All items are " |
| 851 |
"integers in `range(256)`." |
| 852 |
msgstr "" |
| 853 |
"色の値と、必要に応じてアルファ値のリスト。その長さと内容は、Pixmap " |
| 854 |
"の色空間とアルファの存在に依存します。RGBAピクセルマップの場合、結果は例えば *[r、g、b、a]* となります。すべてのアイテムは " |
| 855 |
"`range(256)` の整数です。" |
| 856 |
|
| 857 |
#: ../../pixmap.rst:237 4e3d50e363f54e7da5ab00f4aa58fec5 |
| 858 |
msgid "" |
| 859 |
"*New in version 1.14.7:* Manipulate the pixel at location (x, y) (column," |
| 860 |
" line)." |
| 861 |
msgstr "*バージョン1.14.7で新規追加:* 位置(x、y)(列、行)のピクセルを操作します。" |
| 862 |
|
| 863 |
#: ../../pixmap.rst:240 0dcca10c1c4c4b58b61746cd5da73f43 |
| 864 |
msgid "the line number of the pixel. Must be in `range(pix.height)`." |
| 865 |
msgstr "ピクセルの行番号、`range(pix.height)` 内である必要があります。" |
| 866 |
|
| 867 |
#: ../../pixmap.rst:241 eee0a54112754d7db4a0e21facaf19c8 |
| 868 |
msgid "" |
| 869 |
"the desired pixel value given as a sequence of integers in `range(256)`. " |
| 870 |
"The length of the sequence must equal :attr:`Pixmap.n`, which includes " |
| 871 |
"any alpha byte." |
| 872 |
msgstr "" |
| 873 |
"`range(256)` の整数で表されるシーケンスとして指定された所望のピクセル値。シーケンスの長さは :attr:`Pixmap.n` " |
| 874 |
"に等しくなければならず、これにはアルファバイトも含まれます。" |
| 875 |
|
| 876 |
#: ../../pixmap.rst:245 223fcf7f54984d26a1a64657ed00a81d |
| 877 |
msgid "*New in version 1.14.8:* Set the pixels of a rectangle to a value." |
| 878 |
msgstr "*新しいバージョン1.14.8で導入されました:* 特定の値で長方形のピクセルを設定します。" |
| 879 |
|
| 880 |
#: ../../pixmap.rst:247 95d0f97710ba444391fd993ca732bc02 |
| 881 |
msgid "" |
| 882 |
"the rectangle to be filled with the value. The actual area is the " |
| 883 |
"intersection of this parameter and :attr:`Pixmap.irect`. For an empty " |
| 884 |
"intersection (or an invalid parameter), no change will happen." |
| 885 |
msgstr "" |
| 886 |
"値で埋める長方形。実際のエリアはこのパラメータと :attr:`Pixmap.irect` " |
| 887 |
"の交差です。空の交差(または無効なパラメータ)の場合、変更は行われません。" |
| 888 |
|
| 889 |
#: ../../pixmap.rst:248 a8fe7a3cf13a40e6a5abc4a65a481906 |
| 890 |
msgid "" |
| 891 |
"the desired value, given as a sequence of integers in `range(256)`. The " |
| 892 |
"length of the sequence must equal :attr:`Pixmap.n`, which includes any " |
| 893 |
"alpha byte." |
| 894 |
msgstr "" |
| 895 |
"`range(256)` 内の整数のシーケンスとして指定された所望の値。シーケンスの長さは :attr:`Pixmap.n` " |
| 896 |
"と等しくなければならず、これにはアルファバイトも含まれます。" |
| 897 |
|
| 898 |
#: ../../pixmap.rst:251 ef594268cf964435b0f7fae7229908c8 |
| 899 |
msgid "" |
| 900 |
"``False`` if the rectangle was invalid or had an empty intersection with " |
| 901 |
":attr:`Pixmap.irect`, else ``True``." |
| 902 |
msgstr "irectが無効であるか、:attr:`Pixmap.irect` と交差しない場合は ``False``、それ以外の場合は ``True`` 。" |
| 903 |
|
| 904 |
#: ../../pixmap.rst:255 bcf6532518a34f9c87fe6473f29b283c |
| 905 |
msgid "" |
| 906 |
"This method is equivalent to :meth:`Pixmap.set_pixel` executed for each " |
| 907 |
"pixel in the rectangle, but is obviously **very much faster** if many " |
| 908 |
"pixels are involved." |
| 909 |
msgstr "" |
| 910 |
"このメソッドは、多くのピクセルが関与する場合に **非常に高速** であるため、長方形内の各ピクセルに対して実行される " |
| 911 |
":meth:`Pixmap.set_pixel` と同等です。" |
| 912 |
|
| 913 |
#: ../../pixmap.rst:256 bc5f1b513a0f4c4fa649296505adae7c |
| 914 |
msgid "" |
| 915 |
"This method can be used similar to :meth:`Pixmap.clear_with` to " |
| 916 |
"initialize a pixmap with a certain color like this: " |
| 917 |
"*pix.set_rect(pix.irect, (255, 255, 0))* (RGB example, colors the " |
| 918 |
"complete pixmap with yellow)." |
| 919 |
msgstr "" |
| 920 |
"このメソッドは、:meth:`Pixmap.clear_with` " |
| 921 |
"のように、次のようにして特定の色でピクセルマップを初期化するために使用できます。 *pix.set_rect(pix.irect, (255, " |
| 922 |
"255, 0))* (RGBの例、ピクセルマップ全体を黄色で色付けします)。" |
| 923 |
|
| 924 |
#: ../../pixmap.rst:260 a513c003abe849829c11fe1447ebad4c |
| 925 |
msgid "New in v1.17.7" |
| 926 |
msgstr "v1.17.7で新規導入" |
| 927 |
|
| 928 |
#: ../../pixmap.rst:262 0b7cc0a788dd40cb8acfbdb60fc95d01 |
| 929 |
msgid "Set the x and y values of the pixmap's top-left point." |
| 930 |
msgstr "ピクセルマップの左上の点のxとyの値を設定します。" |
| 931 |
|
| 932 |
#: ../../pixmap.rst:264 235e6e23b0b24739bc80e81e21526714 |
| 933 |
msgid "x coordinate" |
| 934 |
msgstr "x座標" |
| 935 |
|
| 936 |
#: ../../pixmap.rst:265 6abac422a54b4e5bb66a4859637f5a69 |
| 937 |
msgid "y coordinate" |
| 938 |
msgstr "y座標" |
| 939 |
|
| 940 |
#: ../../pixmap.rst:270 c5527c1032f044a2a640143d01653c61 |
| 941 |
msgid "New in v1.16.17" |
| 942 |
msgstr "v1.16.17で新規導入." |
| 943 |
|
| 944 |
#: ../../pixmap.rst:272 f49f9e8464474d7cbf7a85f1ba506a82 |
| 945 |
msgid "" |
| 946 |
"Changed in v1.18.0: When saving as a PNG image, these values will be " |
| 947 |
"stored now." |
| 948 |
msgstr "v1.18.0で変更:PNGイメージとして保存する場合、これらの値が保存されるようになりました。" |
| 949 |
|
| 950 |
#: ../../pixmap.rst:274 a468673bcf8b49a68b788fd8ae23b5d5 |
| 951 |
msgid "Set the resolution (dpi) in x and y direction." |
| 952 |
msgstr "xおよびy方向の解像度(dpi)を設定します。" |
| 953 |
|
| 954 |
#: ../../pixmap.rst:276 0ac91572ffc64e2bba64b0279d3fc7a3 |
| 955 |
msgid "resolution in x direction." |
| 956 |
msgstr "x方向の解像度。" |
| 957 |
|
| 958 |
#: ../../pixmap.rst:277 1eb356ec57454ca9815ab72ead63956f |
| 959 |
msgid "resolution in y direction." |
| 960 |
msgstr "y方向の解像度。" |
| 961 |
|
| 962 |
#: ../../pixmap.rst:282 8623995d2c004b0ba2caf470042846f1 |
| 963 |
msgid "Changed in v 1.18.13" |
| 964 |
msgstr "変更内容:v1.18.13で変更" |
| 965 |
|
| 966 |
#: ../../pixmap.rst:284 82d487067f8d4ced9ef11d081f5e4ce8 |
| 967 |
msgid "Change the alpha values. The pixmap must have an alpha channel." |
| 968 |
msgstr "アルファ値を変更します。ピクマップにはアルファチャンネルが必要です。" |
| 969 |
|
| 970 |
#: ../../pixmap.rst:286 c98fe169c19c487481ca55cd0633f3f8 |
| 971 |
msgid "" |
| 972 |
"the new alpha values. If provided, its length must be at least *width * " |
| 973 |
"height*. If omitted (`None`), all alpha values are set to 255 (no " |
| 974 |
"transparency). *Changed in version 1.14.13:* *io.BytesIO* is now also " |
| 975 |
"accepted." |
| 976 |
msgstr "" |
| 977 |
"新しいアルファ値。指定された場合、その長さは少なくとも *幅×高* " |
| 978 |
"さでなければなりません。省略した場合(`None`)、すべてのアルファ値が255(透明でない)に設定されます。*バージョン1.14.13で変更:*" |
| 979 |
" *io.BytesIO* も受け入れられるようになりました。" |
| 980 |
|
| 981 |
#: ../../pixmap.rst:287 e94c3d6b68c141e2b61b6f54ab717d33 |
| 982 |
msgid "" |
| 983 |
"*New in v1.18.13:* whether to premultiply color components with the alpha" |
| 984 |
" value." |
| 985 |
msgstr "*v1.18.13で新登場:* カラーコンポーネントをアルファ値と乗算するかどうか。" |
| 986 |
|
| 987 |
#: ../../pixmap.rst:288 fbe9e806927d460389c858b14d4f3644 |
| 988 |
msgid "" |
| 989 |
"ignore the alpha value and set this color to fully transparent. A " |
| 990 |
"sequence of integers in `range(256)` with a length of :attr:`Pixmap.n`. " |
| 991 |
"Default is ``None``. For example, a typical choice for RGB would be " |
| 992 |
"`opaque=(255, 255, 255)` (white)." |
| 993 |
msgstr "" |
| 994 |
"アルファ値を無視し、この色を完全に透明に設定します。長さが :attr:`Pixmap.n` で `range(256)` " |
| 995 |
"内の整数のシーケンスです。デフォルトは ``None`` です。たとえば、RGBの典型的な選択肢は `opaque=(255, 255, " |
| 996 |
"255)` (白)です。" |
| 997 |
|
| 998 |
#: ../../pixmap.rst:293 e617ef83731c4689a35511a90c29ceeb |
| 999 |
msgid "" |
| 1000 |
"Invert the color of all pixels in :ref:`IRect` *irect*. Will have no " |
| 1001 |
"effect if colorspace is ``None``." |
| 1002 |
msgstr "" |
| 1003 |
":ref:`IRect` *irect* 内のすべてのピクセルの色を反転させます。colorspaceが ``None`` " |
| 1004 |
"の場合は効果がありません。" |
| 1005 |
|
| 1006 |
#: ../../pixmap.rst:295 b9d38a022bef44f89d241d1964237fbb |
| 1007 |
msgid "The area to be inverted. Omit to invert everything." |
| 1008 |
msgstr "反転する領域。すべて反転するには省略します。" |
| 1009 |
|
| 1010 |
#: ../../pixmap.rst:299 e764fb3df0324f5187dbb68ba9a917ba |
| 1011 |
msgid "" |
| 1012 |
"Copy the *irect* part of the *source* pixmap into the corresponding area " |
| 1013 |
"of this one. The two pixmaps may have different dimensions and can each " |
| 1014 |
"have :data:`CS_GRAY` or :data:`CS_RGB` colorspaces, but they currently " |
| 1015 |
"**must** have the same alpha property [#f2]_. The copy mechanism " |
| 1016 |
"automatically adjusts discrepancies between source and target like so:" |
| 1017 |
msgstr "" |
| 1018 |
"*ソース* ピクマップの *irect* " |
| 1019 |
"部分を、このピクマップの対応する領域にコピーします。2つのピクマップは異なる寸法を持つことができ、それぞれが :data:`CS_GRAY` " |
| 1020 |
"または :data:`CS_RGB` カラースペースを持つことができますが、現在は同じアルファプロパティ [#f2]_ " |
| 1021 |
"を持っている必要があります。コピー機構は、次のようにソースとターゲットの間の不一致を自動的に調整します。" |
| 1022 |
|
| 1023 |
#: ../../pixmap.rst:301 e270f22850b84663930783d1f33ca33c |
| 1024 |
msgid "" |
| 1025 |
"If copying from :data:`CS_GRAY` to :data:`CS_RGB`, the source gray-shade " |
| 1026 |
"value will be put into each of the three rgb component bytes. If the " |
| 1027 |
"other way round, *(r + g + b) / 3* will be taken as the gray-shade value " |
| 1028 |
"of the target." |
| 1029 |
msgstr "" |
| 1030 |
":data:`CS_GRAY` から :data:`CS_RGB` " |
| 1031 |
"にコピーする場合、ソースのグレーシェード値は、3つのRGBコンポーネントバイトの各々に配置されます。逆の場合、*(r + g + b)/ 3* " |
| 1032 |
"がターゲットのグレーシェード値として取られます。" |
| 1033 |
|
| 1034 |
#: ../../pixmap.rst:303 e29fc4caf130461db1843ba16fe4fc72 |
| 1035 |
msgid "" |
| 1036 |
"Between *irect* and the target pixmap's rectangle, an \"intersection\" is" |
| 1037 |
" calculated at first. This takes into account the rectangle coordinates " |
| 1038 |
"and the current attribute values :attr:`Pixmap.x` and :attr:`Pixmap.y` " |
| 1039 |
"(which you are free to modify for this purpose via " |
| 1040 |
":meth:`Pixmap.set_origin`). Then the corresponding data of this " |
| 1041 |
"intersection are copied. If the intersection is empty, nothing will " |
| 1042 |
"happen." |
| 1043 |
msgstr "" |
| 1044 |
"*irect* とターゲットピクマップの長方形の間で、まず「交差」を計算します。これは、長方形の座標と現在の属性値 " |
| 1045 |
":attr:`Pixmap.x` および :attr:`Pixmap.y` (これを目的のために " |
| 1046 |
":meth:`Pixmap.set_origin` " |
| 1047 |
"を介して自由に変更できます)を考慮に入れます。その後、この交差のデータがコピーされます。交差が空の場合、何も起こりません。" |
| 1048 |
|
| 1049 |
#: ../../pixmap.rst:308 fb1b535c8adc44baa4c729c25fec3e14 |
| 1050 |
msgid "The area to be copied." |
| 1051 |
msgstr "コピーする領域。" |
| 1052 |
|
| 1053 |
#: ../../pixmap.rst:310 82448c014aa543b68e66cec1b07f3d96 |
| 1054 |
msgid "" |
| 1055 |
"Example: Suppose you have two pixmaps, `pix1` and `pix2` and you want to " |
| 1056 |
"copy the lower right quarter of `pix2` to `pix1` such that it starts at " |
| 1057 |
"the top-left point of `pix1`. Use the following snippet::" |
| 1058 |
msgstr "" |
| 1059 |
"例: `pix1` と `pix2` という2つのピクマップがあるとし、`pix2` の右下の四半期を `pix1` にコピーし、それが " |
| 1060 |
"`pix1` の左上の点から開始するようにしたい場合、次のスニペットを使用します::" |
| 1061 |
|
| 1062 |
#: ../../pixmap.rst:329 7fbfff308f9d4627a4a6f2fc60e1651e |
| 1063 |
msgid "" |
| 1064 |
"Changed in v1.22.0: Added **direct support of JPEG** images. Image " |
| 1065 |
"quality can be controlled via parameter \"jpg_quality\"." |
| 1066 |
msgstr "v1.22.0で変更:**JPEG画像の直接サポート** が追加されました。画像の品質は「jpg_quality」パラメータを使用して制御できます。" |
| 1067 |
|
| 1068 |
#: ../../pixmap.rst:331 97bd54f9e597471292898030e2002c7a |
| 1069 |
msgid "" |
| 1070 |
"Save pixmap as an image file. Depending on the output chosen, only some " |
| 1071 |
"or all colorspaces are supported and different file extensions can be " |
| 1072 |
"chosen. Please see the table below." |
| 1073 |
msgstr "Pixmapを画像ファイルとして保存します。選択した出力に応じて、一部またはすべてのカラースペースがサポートされ、異なるファイル拡張子を選択できます。詳細については以下の表をご覧ください。" |
| 1074 |
|
| 1075 |
#: ../../pixmap.rst:333 9cbb39acd6fd43c7b4231f63399b34d8 |
| 1076 |
msgid "" |
| 1077 |
"The file to save to. May be provided as a string, as a ``pathlib.Path`` " |
| 1078 |
"or as a Python file object. In the latter two cases, the filename is " |
| 1079 |
"taken from the resp. object. The filename's extension determines the " |
| 1080 |
"image format, which can be overruled by the output parameter." |
| 1081 |
msgstr "" |
| 1082 |
"保存先のファイル。文字列、``pathlib.Path`` " |
| 1083 |
"、またはPythonファイルオブジェクトとして提供できます。後の2つの場合、ファイル名は対応するオブジェクトから取得されます。ファイル名の拡張子は画像フォーマットを決定し、出力パラメータで上書きできます。" |
| 1084 |
|
| 1085 |
#: ../../pixmap.rst:335 a8f9fb30eb6f4e129ccdb1eb4dfb2d50 |
| 1086 |
msgid "" |
| 1087 |
"The desired image format. The default is the filename's extension. If " |
| 1088 |
"both, this value and the file extension are unsupported, an exception is " |
| 1089 |
"raised. For possible values see :ref:`PixmapOutput`." |
| 1090 |
msgstr "" |
| 1091 |
"望ましい画像フォーマット。デフォルトはファイル名の拡張子です。この値とファイル拡張子の両方がサポートされていない場合、例外が発生します。:ref:`PixmapOutput`" |
| 1092 |
" を参照してください。" |
| 1093 |
|
| 1094 |
#: ../../pixmap.rst:336 ../../pixmap.rst:346 57c5e89d61b643828893b09c1506e81c |
| 1095 |
#: a4031bcffabf4809bb9b3450054f39ec |
| 1096 |
msgid "" |
| 1097 |
"The desired image quality, default 95. Only applies to JPEG images, else " |
| 1098 |
"ignored. This parameter trades quality against file size. A value of 98 " |
| 1099 |
"is close to lossless. Higher values should not lead to better quality." |
| 1100 |
msgstr "望ましい画像品質、デフォルトは95です。JPEG画像にのみ適用され、それ以外の場合は無視されます。このパラメータは品質とファイルサイズをトレードオフにします。値が98の場合、ほぼロスレスです。より高い値は品質を向上させることはありません。" |
| 1101 |
|
| 1102 |
#: ../../pixmap.rst 31830ae4676c49a29f6eda0ec74b2cc7 |
| 1103 |
#: 35f861d76f76416f84ca4a6cfbb9ba36 9e7d20d2ebff48a5a2f12a7bb9cb207f |
| 1104 |
#: 9e8d92287683474c8894ca359bc0df3c eaa3f51d3c63445d921c804b8d264fba |
| 1105 |
msgid "Raises" |
| 1106 |
msgstr "例外" |
| 1107 |
|
| 1108 |
#: ../../pixmap.rst:338 ../../pixmap.rst:348 74c8c07d5a4d429180ebc61a6dc88b40 |
| 1109 |
#: 888fc652cefb483cbc631acba45b2a8c |
| 1110 |
msgid "For unsupported image formats." |
| 1111 |
msgstr "サポートされていない画像フォーマットの場合。" |
| 1112 |
|
| 1113 |
#: ../../pixmap.rst:342 3e89ee831b4744b2a7778a6f2ab7d705 |
| 1114 |
msgid "" |
| 1115 |
"New in version 1.14.5: Return the pixmap as a *bytes* memory object of " |
| 1116 |
"the specified format -- similar to :meth:`save`." |
| 1117 |
msgstr "" |
| 1118 |
"新機能(バージョン1.14.5):指定されたフォーマットのピクマップをバイトメモリオブジェクトとして返します。これは :meth:`save` " |
| 1119 |
"と似ています。" |
| 1120 |
|
| 1121 |
#: ../../pixmap.rst:343 4dff4d1183ff44f2a456ec123ddad67f |
| 1122 |
msgid "" |
| 1123 |
"Changed in v1.22.0: Added **direct JPEG support**. Image quality can be " |
| 1124 |
"influenced via new parameter \"jpg_quality\"." |
| 1125 |
msgstr "" |
| 1126 |
"v1.22.0で変更: **JPEG画像の直接サポート** " |
| 1127 |
"が追加されました。画像の品質は「jpg_quality」パラメータを使用して制御できます。" |
| 1128 |
|
| 1129 |
#: ../../pixmap.rst:345 17d9ad6bf1cd4d0caaf174d46a29b286 |
| 1130 |
msgid "" |
| 1131 |
"The desired image format. The default is \"png\". For possible values see" |
| 1132 |
" :ref:`PixmapOutput`." |
| 1133 |
msgstr "望ましい画像フォーマット。デフォルトは \"png\" です。:ref:`PixmapOutput` を参照してください。" |
| 1134 |
|
| 1135 |
#: ../../pixmap.rst:351 7a4a3392440c413b9549ddfd80aa09e8 |
| 1136 |
msgid "" |
| 1137 |
"The requested image format. The default is \"png\". For other possible " |
| 1138 |
"values see :ref:`PixmapOutput`." |
| 1139 |
msgstr "リクエストされた画像フォーマットです。デフォルトは \"png\" です。:ref:`PixmapOutput` を参照してください。" |
| 1140 |
|
| 1141 |
#: ../../pixmap.rst:355 ../../pixmap.rst:370 024249ef113f468bba659314559663a8 |
| 1142 |
#: 3ebc661e655c4894a0780bd40d34f1b9 |
| 1143 |
msgid "New in v1.19.0" |
| 1144 |
msgstr "v1.19.0 で新規追加" |
| 1145 |
|
| 1146 |
#: ../../pixmap.rst:357 ../../pixmap.rst:372 98399e67142a4ab4bfa0146bb6a938e0 |
| 1147 |
#: fde150994fb44c0dac805e2d7807ae53 |
| 1148 |
msgid "Changed in v1.22.5: Support of new parameter for Tesseract's tessdata." |
| 1149 |
msgstr "v1.22.5 で変更:Tesseract の tessdata に関する新しいパラメータのサポート。" |
| 1150 |
|
| 1151 |
#: ../../pixmap.rst:359 7e216757569f4c4ebb1b9d88f2858c00 |
| 1152 |
msgid "" |
| 1153 |
"Perform text recognition using Tesseract and save the image as a 1-page " |
| 1154 |
"PDF with an OCR text layer." |
| 1155 |
msgstr "Tesseract を使用してテキスト認識を実行し、OCR テキスト レイヤーを持つ 1 ページの PDF として画像を保存します。" |
| 1156 |
|
| 1157 |
#: ../../pixmap.rst:361 9e480852cca4498d8cb34f674e078760 |
| 1158 |
msgid "" |
| 1159 |
"identifies the file to save to. May be either a string or a pointer to a " |
| 1160 |
"file opened with \"wb\" (includes `io.BytesIO()` objects)." |
| 1161 |
msgstr "" |
| 1162 |
"保存先のファイルを識別します。文字列または \"wb\" で開かれたファイルへのポインタ (`io.BytesIO()` " |
| 1163 |
"オブジェクトを含む)のいずれかである必要があります。" |
| 1164 |
|
| 1165 |
#: ../../pixmap.rst:362 739251505f694c69af4730ee2d8f7848 |
| 1166 |
msgid "whether to compress the resulting PDF, default is `True`." |
| 1167 |
msgstr "結果の PDF を圧縮するかどうか。デフォルトは `True` です。" |
| 1168 |
|
| 1169 |
#: ../../pixmap.rst:363 8c1c54fe56a34bf19f07465936ed9f10 |
| 1170 |
msgid "" |
| 1171 |
"the languages occurring in the image. This must be specified in Tesseract" |
| 1172 |
" format. Default is \"eng\" for English. Use \"+\"-separated Tesseract " |
| 1173 |
"language codes for multiple languages, like \"eng+spa\" for English and " |
| 1174 |
"Spanish." |
| 1175 |
msgstr "" |
| 1176 |
"画像内で使用される言語。Tesseract の形式で指定する必要があります。デフォルトは " |
| 1177 |
"\"eng\"(英語)です。複数の言語を使用する場合、\"eng+spa\" のように \"+\" で区切った Tesseract " |
| 1178 |
"言語コードを使用します(英語とスペイン語の場合など)。" |
| 1179 |
|
| 1180 |
#: ../../pixmap.rst:364 fcca47fa76a9459cbec299e7f148dec6 |
| 1181 |
#, fuzzy |
| 1182 |
msgid "" |
| 1183 |
"folder name of Tesseract's language support. If omitted, this information" |
| 1184 |
" must be present as environment variable `TESSDATA_PREFIX`." |
| 1185 |
msgstr "" |
| 1186 |
":arg str tessdata: Tesseractの言語サポートフォルダーの名前です。省略した場合、この情報は環境変数 " |
| 1187 |
"`TESSDATA_PREFIX` として存在している必要があります。" |
| 1188 |
|
| 1189 |
#: ../../pixmap.rst:366 21a4cf67602b4076b49b985e8aa0c66b |
| 1190 |
msgid "" |
| 1191 |
"**Will fail** if Tesseract is not installed or if the environment " |
| 1192 |
"variable \"TESSDATA_PREFIX\" is not set to the `tessdata` folder name and" |
| 1193 |
" not provided as parameter." |
| 1194 |
msgstr "" |
| 1195 |
"Tesseract がインストールされていない場合や、環境変数 \"TESSDATA_PREFIX\" が `tessdata` " |
| 1196 |
"フォルダ名に設定されておらず、またはパラメータとして提供されていない場合、この関数は **失敗します** 。" |
| 1197 |
|
| 1198 |
#: ../../pixmap.rst:374 32b8acd13d9f48e1bfd79ab1023be929 |
| 1199 |
msgid "" |
| 1200 |
"Perform text recognition using Tesseract and convert the image to a " |
| 1201 |
"1-page PDF with an OCR text layer. Internally invokes " |
| 1202 |
":meth:`Pixmap.pdfocr_save`." |
| 1203 |
msgstr "" |
| 1204 |
"Tesseractを使用してテキスト認識を実行し、画像をOCRテキストレイヤーを持つ1ページのPDFに変換します。内部的には " |
| 1205 |
":meth:`Pixmap.pdfocr_save` を呼び出します" |
| 1206 |
|
| 1207 |
#: ../../pixmap.rst:376 9e005bf6ab3440c085ee1193ba601f87 |
| 1208 |
msgid "" |
| 1209 |
"A 1-page PDF file in memory. Could be opened like " |
| 1210 |
"`doc=pymupdf.open(\"pdf\", pix.pdfocr_tobytes())`, and text extractions " |
| 1211 |
"could be performed on its `page=doc[0]`. .. note:: Another possible " |
| 1212 |
"use is insertion into some pdf. The following snippet reads the images of" |
| 1213 |
" a folder and stores them as pages in a new PDF that contain an OCR text " |
| 1214 |
"layer:: doc = pymupdf.open() for imgfile in " |
| 1215 |
"os.listdir(folder): pix = pymupdf.Pixmap(imgfile) " |
| 1216 |
"imgpdf = pymupdf.open(\"pdf\", pix.pdfocr_tobytes()) " |
| 1217 |
"doc.insert_pdf(imgpdf) pix = None imgpdf.close() " |
| 1218 |
"doc.save(\"ocr-images.pdf\")" |
| 1219 |
msgstr "" |
| 1220 |
|
| 1221 |
#: ../../pixmap.rst:376 b412ebf7d201478890ec75b641a17871 |
| 1222 |
msgid "" |
| 1223 |
"A 1-page PDF file in memory. Could be opened like " |
| 1224 |
"`doc=pymupdf.open(\"pdf\", pix.pdfocr_tobytes())`, and text extractions " |
| 1225 |
"could be performed on its `page=doc[0]`." |
| 1226 |
msgstr "" |
| 1227 |
"メモリ内の1ページのPDFファイル。次のようにして開くことができます: `doc=pymupdf.open(\"pdf\", " |
| 1228 |
"pix.pdfocr_tobytes())` 、そしてそのページ=doc[0]でテキストの抽出が行えます。" |
| 1229 |
|
| 1230 |
#: ../../pixmap.rst:380 2cd418d767ef4149b35f4d0415d14af1 |
| 1231 |
msgid "" |
| 1232 |
"Another possible use is insertion into some pdf. The following snippet " |
| 1233 |
"reads the images of a folder and stores them as pages in a new PDF that " |
| 1234 |
"contain an OCR text layer::" |
| 1235 |
msgstr "" |
| 1236 |
"別の可能性として、PDF に挿入することが考えられます。次のスニペットは、フォルダ内の画像を読み取り、OCR テキスト レイヤーを含む新しい " |
| 1237 |
"PDF ページとして保存します::" |
| 1238 |
|
| 1239 |
#: ../../pixmap.rst:394 efc06e14189c4871827c5261c0623dfa |
| 1240 |
msgid "Create a Pillow Image from the pixmap. PIL / Pillow must be installed." |
| 1241 |
msgstr "" |
| 1242 |
|
| 1243 |
#: ../../pixmap.rst:396 ../../pixmap.rst:416 ../../pixmap.rst:424 |
| 1244 |
#: 3df2560f6e804a789cc70c26deec880b 8087c1edcca942f186efe9ad6be77c16 |
| 1245 |
#: 85c874d70f274112a51bc6ce56e6e197 |
| 1246 |
msgid "if Pillow is not installed." |
| 1247 |
msgstr "Pillow がインストールされていない場合" |
| 1248 |
|
| 1249 |
#: ../../pixmap.rst:397 69708896f8e44f9eb5a130326ae36b80 |
| 1250 |
msgid "a ``PIL.Image`` object" |
| 1251 |
msgstr "" |
| 1252 |
|
| 1253 |
#: ../../pixmap.rst:401 3f77a2ee05134b31a570bc40ff704b87 |
| 1254 |
msgid "" |
| 1255 |
"Write the pixmap as an image file using Pillow. Use this method for " |
| 1256 |
"output unsupported by MuPDF. Examples are" |
| 1257 |
msgstr "" |
| 1258 |
"Pillow を使用して pixmap を画像ファイルとして書き込みます。これは MuPDF " |
| 1259 |
"でサポートされていない出力に使用します。例として、以下が挙げられます。" |
| 1260 |
|
| 1261 |
#: ../../pixmap.rst:403 8f8925fd0a1e4868840945ccf3b35017 |
| 1262 |
msgid "Formats JPX, J2K, WebP, etc." |
| 1263 |
msgstr "JPX、J2K、WebP などの形式" |
| 1264 |
|
| 1265 |
#: ../../pixmap.rst:404 bd17d3e24fb740469efea4743e5ffb78 |
| 1266 |
msgid "Storing EXIF information." |
| 1267 |
msgstr "EXIF 情報の保存" |
| 1268 |
|
| 1269 |
#: ../../pixmap.rst:405 d7d0bc56bfcb4f179b7f00d2ad59c255 |
| 1270 |
msgid "" |
| 1271 |
"If you do not provide dpi information, the values *xres*, *yres* stored " |
| 1272 |
"with the pixmap are automatically used." |
| 1273 |
msgstr "dpi 情報を提供しない場合、pixmap に格納されている *xres*、*yres* の値が自動的に使用されます。" |
| 1274 |
|
| 1275 |
#: ../../pixmap.rst:407 20bf1e69dd5147b9a108ab328fe2657e |
| 1276 |
#, fuzzy |
| 1277 |
msgid "" |
| 1278 |
"A simple example: `pix.pil_save(\"some.webp\", optimize=True, dpi=(150, " |
| 1279 |
"150))`." |
| 1280 |
msgstr "" |
| 1281 |
"簡単な例: `pix.pil_save(\"some.webp\", optimize=True, dpi=(150, 150))` " |
| 1282 |
"。他のパラメータの詳細については、Pillow のドキュメンテーションを参照してください。" |
| 1283 |
|
| 1284 |
#: ../../pixmap.rst:409 71799e7c62324bbea016ae30eafbc021 |
| 1285 |
msgid "" |
| 1286 |
"If the pixmap's colorspace is RGB with transparency, the alpha values may" |
| 1287 |
" or may not already be multiplied into the color components " |
| 1288 |
"ref/green/blue (called \"premultiplied\"). To enforce undoing " |
| 1289 |
"premultiplication, set this parameter to `True`. To learn about some " |
| 1290 |
"background, e.g. look for `\"Premultiplied alpha\" on this page " |
| 1291 |
"<https://en.wikipedia.org/wiki/Glossary_of_computer_graphics#P>`_." |
| 1292 |
msgstr "" |
| 1293 |
|
| 1294 |
#: ../../pixmap.rst:412 c5f67c82cc1b4a078d120281dc779a59 |
| 1295 |
msgid "For details on other parameters see the Pillow documentation." |
| 1296 |
msgstr "" |
| 1297 |
|
| 1298 |
#: ../../pixmap.rst:414 d3f2fde19b034f09971604debcf8e6dc |
| 1299 |
msgid "" |
| 1300 |
"Since v1.22.0, PyMuPDF supports JPEG output directly. We recommended to " |
| 1301 |
"no longer use this method for JPEG output -- for performance reasons and " |
| 1302 |
"for avoiding unnecessary external dependencies." |
| 1303 |
msgstr "" |
| 1304 |
|
| 1305 |
#: ../../pixmap.rst:420 835e9bbf2bc047f2b9657ca7741ec37e |
| 1306 |
msgid "New in v1.17.3" |
| 1307 |
msgstr "v1.17.3 で新しく追加されました" |
| 1308 |
|
| 1309 |
#: ../../pixmap.rst:422 d0177a551753414586749bf415cf6080 |
| 1310 |
#, fuzzy |
| 1311 |
msgid "" |
| 1312 |
"Return an image as a bytes object in the specified format using Pillow. " |
| 1313 |
"For example `stream = pix.pil_tobytes(format=\"WEBP\", optimize=True, " |
| 1314 |
"dpi=(150, 150))`. Also see above. For details on other parameters see the" |
| 1315 |
" Pillow documentation." |
| 1316 |
msgstr "" |
| 1317 |
"Pillow を使用して指定された形式の画像として bytes オブジェクトとして画像を返します。例: `stream = " |
| 1318 |
"pix.pil_tobytes(format=\"WEBP\", optimize=True)` 。詳細なパラメータについては、Pillow " |
| 1319 |
"のドキュメンテーションを参照してください。" |
| 1320 |
|
| 1321 |
#: ../../pixmap.rst:431 ../../pixmap.rst:466 68173364cda84dab84fa461435fdec56 |
| 1322 |
#: b156a10f58714dae92ca5c3163c24112 |
| 1323 |
msgid "New in v1.19.3" |
| 1324 |
msgstr "v1.19.3 で新しく追加されました" |
| 1325 |
|
| 1326 |
#: ../../pixmap.rst:433 129930765e83498b8cb4362c41d7fb9a |
| 1327 |
msgid "" |
| 1328 |
"Return a new pixmap by \"warping\" the quad such that the quad corners " |
| 1329 |
"become the new pixmap's corners. The target pixmap's `irect` will be `(0," |
| 1330 |
" 0, width, height)`." |
| 1331 |
msgstr "" |
| 1332 |
"四角形を \"ワープ\" して、四角形の角が新しい pixmap の角になるようにします。対象 pixmap の `irect` は `(0, " |
| 1333 |
"0, width, height)` になります。" |
| 1334 |
|
| 1335 |
#: ../../pixmap.rst:435 6c6e2bf54f6c4c1cbd3c172dbbfb7712 |
| 1336 |
msgid "" |
| 1337 |
"a convex quad with coordinates inside :attr:`Pixmap.irect` (including the" |
| 1338 |
" border points)." |
| 1339 |
msgstr ":attr:`Pixmap.irect` の内部にある座標を持つ凸四角形(境界点も含む)" |
| 1340 |
|
| 1341 |
#: ../../pixmap.rst:436 e9644c03761249019390c475ce09eeb9 |
| 1342 |
msgid "desired resulting width." |
| 1343 |
msgstr "望ましい幅" |
| 1344 |
|
| 1345 |
#: ../../pixmap.rst:437 5af3c5ce964244d9ac8c1210ae145777 |
| 1346 |
msgid "desired resulting height." |
| 1347 |
msgstr "望ましい高さ" |
| 1348 |
|
| 1349 |
#: ../../pixmap.rst:438 23af53d676c943ab8270f1f4eb3e15f8 |
| 1350 |
msgid "" |
| 1351 |
"A new pixmap where the quad corners are mapped to the pixmap corners in a" |
| 1352 |
" clockwise fashion: `quad.ul -> irect.tl`, `quad.ur -> irect.tr`, etc." |
| 1353 |
msgstr "" |
| 1354 |
"新しいピクスマップで、四角形の角が時計回りにピクスマップの角にマップされます: `quad.ul -> irect.tl`、`quad.ur ->" |
| 1355 |
" irect.tr` など。" |
| 1356 |
|
| 1357 |
#: ../../pixmap.rst:439 c3fb88fba3f7447889bc2174e90ed4ed |
| 1358 |
msgid "" |
| 1359 |
":ref:`Pixmap` .. image:: images/img-warp.* :scale: 40 :align: " |
| 1360 |
"center" |
| 1361 |
msgstr "" |
| 1362 |
|
| 1363 |
#: ../../pixmap.rst:439 8eb4c765b10a4af0b07fe6d1cd7386d2 |
| 1364 |
msgid ":ref:`Pixmap`" |
| 1365 |
msgstr "" |
| 1366 |
|
| 1367 |
#: ../../pixmap.rst:448 ../../pixmap.rst:505 ../../pixmap.rst:514 |
| 1368 |
#: 00c62e32e38c4d82895121b426757269 0149558efd01426095beb5bf88035b73 |
| 1369 |
#: 5c3eedb1091c4eb1af8d1010e7f2b3f0 |
| 1370 |
msgid "New in v1.19.2" |
| 1371 |
msgstr "v1.19.2で導入" |
| 1372 |
|
| 1373 |
#: ../../pixmap.rst:449 b8fe5dd5d0294610a99db8d7ebd6deec |
| 1374 |
msgid "Changed in v1.19.3" |
| 1375 |
msgstr "v1.19.3で変更" |
| 1376 |
|
| 1377 |
#: ../../pixmap.rst:451 c2da2a6121594d6c8b3f4e6e7d643cee |
| 1378 |
msgid "Determine the pixmap's unique colors and their count." |
| 1379 |
msgstr "Pixmapのユニークな色とそのカウントを特定します。" |
| 1380 |
|
| 1381 |
#: ../../pixmap.rst:453 992445f66d104d8c89ac2f8297c8e9c4 |
| 1382 |
msgid "" |
| 1383 |
"*(changed in v1.19.3)* If `True` return a dictionary of color pixels and " |
| 1384 |
"their usage count, else just the number of unique colors." |
| 1385 |
msgstr "*(v1.19.3で変更)* `True` の場合、色ピクセルとその使用回数の辞書を返し、それ以外の場合はユニークな色の数だけを返します。" |
| 1386 |
|
| 1387 |
#: ../../pixmap.rst:454 db2ea4eae7a1492dad41fae7951b0160 |
| 1388 |
msgid "" |
| 1389 |
"a rectangle inside :attr:`Pixmap.irect`. If provided, only those pixels " |
| 1390 |
"are considered. This allows inspecting sub-rectangles of a given pixmap " |
| 1391 |
"directly -- instead of building sub-pixmaps." |
| 1392 |
msgstr "" |
| 1393 |
":attr:`Pixmap.irect` " |
| 1394 |
"内の四角形。指定した場合、そのピクセルのみが考慮されます。これにより、指定されたPixmapのサブ四角形を直接調査できます。" |
| 1395 |
|
| 1396 |
#: ../../pixmap.rst:456 61a615b057024b7a9b6ac7fe5ff849ab |
| 1397 |
msgid "" |
| 1398 |
"either the number of colors, or a dictionary with the items `pixel: " |
| 1399 |
"count`. The pixel key is a `bytes` object of length :attr:`Pixmap.n`. .." |
| 1400 |
" note:: To recover the **tuple** of a pixel, use " |
| 1401 |
"`tuple(colors.keys()[i])` for the i-th item. * The response time " |
| 1402 |
"depends on the pixmap's samples size and may be more than a second for " |
| 1403 |
"very large pixmaps. * Where applicable, pixels with different alpha " |
| 1404 |
"values will be treated as different colors." |
| 1405 |
msgstr "" |
| 1406 |
|
| 1407 |
#: ../../pixmap.rst:456 9ad0b09ff1334369af15be4f052a2f6f |
| 1408 |
msgid "" |
| 1409 |
"either the number of colors, or a dictionary with the items `pixel: " |
| 1410 |
"count`. The pixel key is a `bytes` object of length :attr:`Pixmap.n`." |
| 1411 |
msgstr "" |
| 1412 |
"色の数、または `pixel: count` の項目を持つ辞書。pixelキーは :attr:`Pixmap.n` の長さの `bytes` " |
| 1413 |
"オブジェクトです。" |
| 1414 |
|
| 1415 |
#: ../../pixmap.rst:458 d7bdc5a53abc43d6a1041953b5c0c526 |
| 1416 |
msgid "" |
| 1417 |
"To recover the **tuple** of a pixel, use `tuple(colors.keys()[i])` for " |
| 1418 |
"the i-th item." |
| 1419 |
msgstr "ピクセルのタプルを復元するには、i番目の項目に対して `tuple(colors.keys()[i])` を使用します。" |
| 1420 |
|
| 1421 |
#: ../../pixmap.rst:460 260f96dbe8c04ab1a25159255b8b79a7 |
| 1422 |
msgid "" |
| 1423 |
"The response time depends on the pixmap's samples size and may be more " |
| 1424 |
"than a second for very large pixmaps." |
| 1425 |
msgstr "応答時間はPixmapのsamplesサイズに依存し、非常に大きなPixmapの場合は1秒以上かかることがあります。" |
| 1426 |
|
| 1427 |
#: ../../pixmap.rst:461 1b987ef794b6454eb0d9366a05344070 |
| 1428 |
msgid "" |
| 1429 |
"Where applicable, pixels with different alpha values will be treated as " |
| 1430 |
"different colors." |
| 1431 |
msgstr "該当する場合、異なるアルファ値を持つピクセルは異なる色として扱われます。" |
| 1432 |
|
| 1433 |
#: ../../pixmap.rst:468 2b6490adea534fa6a8de4eaf1edb354a |
| 1434 |
msgid "Return the most frequently used color and its relative frequency." |
| 1435 |
msgstr "最も頻繁に使用される色とその相対頻度を返します。" |
| 1436 |
|
| 1437 |
#: ../../pixmap.rst:470 485c7c5b4da94258b242db7b59b19b53 |
| 1438 |
msgid "" |
| 1439 |
"A rectangle inside :attr:`Pixmap.irect`. If provided, only those pixels " |
| 1440 |
"are considered. This allows inspecting sub-rectangles of a given pixmap " |
| 1441 |
"directly -- instead of building sub-pixmaps." |
| 1442 |
msgstr "" |
| 1443 |
":attr:`Pixmap.irect` " |
| 1444 |
"内の四角形。指定した場合、そのピクセルのみが考慮されます。これにより、指定されたPixmapのサブ四角形を直接調査できます。" |
| 1445 |
|
| 1446 |
#: ../../pixmap.rst:472 9110208e27134f02a9b9bcdc7700add8 |
| 1447 |
#, python-format |
| 1448 |
msgid "" |
| 1449 |
"A tuple `(ratio, pixel)` where `0 < ratio <= 1` and *pixel* is the pixel " |
| 1450 |
"value of the color. Use this to decide if the image is \"almost\" " |
| 1451 |
"unicolor: a response `(0.95, b\"\\x00\\x00\\x00\")` means that 95% of all" |
| 1452 |
" pixels are black. See an example here :ref:`RecipesImages_P`." |
| 1453 |
msgstr "" |
| 1454 |
"比率 `0 < ratio <= 1` および色のピクセル値を持つタプル。これを使用して画像が「ほぼ」単一の色であるかどうかを判断します。応答 " |
| 1455 |
"`(0.95, b\"\\x00\\x00\\x00\")` " |
| 1456 |
"は、すべてのピクセルの95%が黒であることを示します。こちらの例を参照してください:「Pixmapsの使用方法:テキストの可視性の確認」" |
| 1457 |
|
| 1458 |
#: ../../pixmap.rst:477 5e93c19118c44e4598fc55ffb9cd04f6 |
| 1459 |
msgid "Indicates whether the pixmap contains transparency information." |
| 1460 |
msgstr "Pixmapに透明情報が含まれているかどうかを示します。" |
| 1461 |
|
| 1462 |
#: ../../pixmap.rst 09340208613f48af95d9e1d2a3ef91fa |
| 1463 |
#: 0cc2b878ea234bfe8d91795141e3924d 0ff51066858f4faaad58612b0fbd5896 |
| 1464 |
#: 163c7d4bd8d3405ca26c2650fa5d8a10 3eb04a688a904a5eaadf5d79aed68b1a |
| 1465 |
#: 4869cfa0cd314211b192a2294838c7dc 5124ac9063654c24a37926de5ab662b6 |
| 1466 |
#: 557f147c6be94fe083e8082986fa08b6 5ee3e6766dd44d2582e805125e914472 |
| 1467 |
#: 5f52d2e5c48c47d7aec0c2b7a743fd46 6124bd56d7524796b1aa3c3e18458232 |
| 1468 |
#: 7c890834a7cf4a088780dfb0e21745a8 84cbd010ada9441a9182c12bbe62059b |
| 1469 |
#: 89488e9f1e4c4e3d8c6ca9ce290016a4 8be2b06b344443289085426c1e14fa50 |
| 1470 |
#: 922e0d0d08124b5081bcbb57569a2aa8 a1b9de76b34b47f9b95c7bb1563b9e5a |
| 1471 |
#: d0c0191f32ed43c6a6857c305705698b ead0a6e9dc94433ba020dae746028076 |
| 1472 |
msgid "type" |
| 1473 |
msgstr "" |
| 1474 |
|
| 1475 |
#: ../../pixmap.rst:479 ../../pixmap.rst:509 ../../pixmap.rst:518 |
| 1476 |
#: ../../pixmap.rst:633 3d5651d764be40cca15a078b7f2531b8 |
| 1477 |
#: 694a5ede4c4c43319c089b1737fd0b9c a65782123b144e4186d43ddd5c138a97 |
| 1478 |
#: cd79fe63f067476c8342570d590c3121 |
| 1479 |
msgid "bool" |
| 1480 |
msgstr "" |
| 1481 |
|
| 1482 |
#: ../../pixmap.rst:483 98d329d87318478090434465b043c79d |
| 1483 |
msgid "" |
| 1484 |
"The MD5 hashcode (16 bytes) of the pixmap. This is a technical value used" |
| 1485 |
" for unique identifications." |
| 1486 |
msgstr "PixmapのMD5ハッシュコード(16バイト)。これは一意の識別に使用される技術的な値です。" |
| 1487 |
|
| 1488 |
#: ../../pixmap.rst:485 ../../pixmap.rst:537 d353d95ffd0249c9985587a89eec06f3 |
| 1489 |
#: fe9d2fb1853646c9bb567d4a448e58de |
| 1490 |
msgid "bytes" |
| 1491 |
msgstr "" |
| 1492 |
|
| 1493 |
#: ../../pixmap.rst:489 94c016ffd0e94ef8a92a913eac909cf0 |
| 1494 |
msgid "" |
| 1495 |
"The colorspace of the pixmap. This value may be ``None`` if the image is " |
| 1496 |
"to be treated as a so-called *image mask* or *stencil mask* (currently " |
| 1497 |
"happens for extracted PDF document images only)." |
| 1498 |
msgstr "" |
| 1499 |
"Pixmapのカラースペース。この値は、イメージが *イメージマスク* または *ステンシルマスク* として扱われる場合、``None`` " |
| 1500 |
"になることがあります(現在、抽出されたPDFドキュメントイメージのみが該当)。" |
| 1501 |
|
| 1502 |
#: ../../pixmap.rst:491 b6cfc944281042b38f313e221d8208ee |
| 1503 |
msgid ":ref:`Colorspace`" |
| 1504 |
msgstr "" |
| 1505 |
|
| 1506 |
#: ../../pixmap.rst:495 6a4abc1ca4ea41e5b98e5867969d0aea |
| 1507 |
msgid "" |
| 1508 |
"Contains the length of one row of image data in :attr:`Pixmap.samples`. " |
| 1509 |
"This is primarily used for calculation purposes. The following " |
| 1510 |
"expressions are true:" |
| 1511 |
msgstr ":attr:`Pixmap.samples` 内の画像データの1行の長さを含みます。これは主に計算目的で使用されます。次の式が真です:" |
| 1512 |
|
| 1513 |
#: ../../pixmap.rst:497 9ef5987d2b004c03a37ac85ebe94eb90 |
| 1514 |
msgid "`len(samples) == height * stride`" |
| 1515 |
msgstr "" |
| 1516 |
|
| 1517 |
#: ../../pixmap.rst:498 ad30730142bb41048a7ad4d99adb37ff |
| 1518 |
msgid "`width * n == stride`" |
| 1519 |
msgstr "" |
| 1520 |
|
| 1521 |
#: ../../pixmap.rst:500 ../../pixmap.rst:575 ../../pixmap.rst:581 |
| 1522 |
#: ../../pixmap.rst:589 ../../pixmap.rst:597 ../../pixmap.rst:603 |
| 1523 |
#: ../../pixmap.rst:609 ../../pixmap.rst:615 ../../pixmap.rst:621 |
| 1524 |
#: ../../pixmap.rst:627 565eef89a4f1443196235c362117a790 |
| 1525 |
#: 5790752de4bc4483b7998ab835faa57f 6b853b1effba4f9fa88e23a4ae3e5bf7 |
| 1526 |
#: a40cc5c113bb4004862e82488bb6ad45 accc4d8148f54c7db1495d30f6c968f0 |
| 1527 |
#: bca3975d0f204589a21f970e856552f3 d03716e1479c4f6b823e4712bf40c8e9 |
| 1528 |
#: d2bde8f030b0409d8de6030b27ad0c95 d833bb6cf43f4a109aa43ffba391db0f |
| 1529 |
#: d8b756b8057c42329c2c1040697bad3a |
| 1530 |
msgid "int" |
| 1531 |
msgstr "" |
| 1532 |
|
| 1533 |
#: ../../pixmap.rst:507 8695567f63d74993b36963cb05639cf6 |
| 1534 |
msgid "Is `True` for a gray pixmap which only has the colors black and white." |
| 1535 |
msgstr "灰色のピクマップで、黒と白の色しか持たない場合は `True` です。" |
| 1536 |
|
| 1537 |
#: ../../pixmap.rst:516 b44722fd47e341cb9f851ef65e077148 |
| 1538 |
msgid "" |
| 1539 |
"Is `True` if all pixels are identical (any colorspace). Where applicable," |
| 1540 |
" pixels with different alpha values will be treated as different colors." |
| 1541 |
msgstr "" |
| 1542 |
"すべてのピクセルが同じ場合、`True` " |
| 1543 |
"です(どのカラースペースでも適用)。該当する場合、異なるアルファ値を持つピクセルは異なる色として扱われます。" |
| 1544 |
|
| 1545 |
#: ../../pixmap.rst:523 6f074461eb274b3388c6956012c6f942 |
| 1546 |
msgid "Contains the :ref:`IRect` of the pixmap." |
| 1547 |
msgstr "ピクマップの :ref:`IRect` を含みます。" |
| 1548 |
|
| 1549 |
#: ../../pixmap.rst:525 8f50d53afc654b528e20564902041ddb |
| 1550 |
msgid ":ref:`IRect`" |
| 1551 |
msgstr "" |
| 1552 |
|
| 1553 |
#: ../../pixmap.rst:529 3abafa8c77804d0482f902d9e46ffb92 |
| 1554 |
msgid "" |
| 1555 |
"The color and (if :attr:`Pixmap.alpha` is true) transparency values for " |
| 1556 |
"all pixels. It is an area of `width * height * n` bytes. Each n bytes " |
| 1557 |
"define one pixel. Each successive n bytes yield another pixel in scanline" |
| 1558 |
" order. Subsequent scanlines follow each other with no padding. E.g. for " |
| 1559 |
"an RGBA colorspace this means, *samples* is a sequence of bytes like " |
| 1560 |
"*..., R, G, B, A, ...*, and the four byte values R, G, B, A define one " |
| 1561 |
"pixel." |
| 1562 |
msgstr "" |
| 1563 |
"すべてのピクセルの色と( :attr:`Pixmap.alpha` がtrueの場合)透明度の値です。これは `width * height * " |
| 1564 |
"n` " |
| 1565 |
"バイトの領域です。各nバイトは1つのピクセルを定義します。各続くnバイトは、スキャンラインの順序で別のピクセルを生成します。連続するスキャンラインはパディングなしで続きます。たとえばRGBAカラースペースの場合、*samples*" |
| 1566 |
" は *…、R、G、B、A、…* のようなバイトのシーケンスで、4つのバイト値R、G、B、Aが1つのピクセルを定義します。" |
| 1567 |
|
| 1568 |
#: ../../pixmap.rst:531 4d2c9332a9384bb2ac55549aea165f04 |
| 1569 |
msgid "" |
| 1570 |
"This area can be passed to other graphics libraries like PIL (Python " |
| 1571 |
"Imaging Library) to do additional processing like saving the pixmap in " |
| 1572 |
"other image formats." |
| 1573 |
msgstr "" |
| 1574 |
"この領域は、PIL(Python Imaging " |
| 1575 |
"Library)などの他のグラフィックライブラリに渡すことができ、ピクマップを他の画像形式で保存するなどの追加の処理を行うのに使用できます。" |
| 1576 |
|
| 1577 |
#: ../../pixmap.rst:534 44ba67d25a5246c9b5c0fd86fc515d65 |
| 1578 |
msgid "" |
| 1579 |
"The underlying data is typically a **large** memory area, from which a " |
| 1580 |
"`bytes` copy is made for this attribute ... each time you access it: for " |
| 1581 |
"example an RGB-rendered letter page has a samples size of almost 1.4 MB. " |
| 1582 |
"So consider assigning a new variable to it or use the `memoryview` " |
| 1583 |
"version :attr:`Pixmap.samples_mv` (new in v1.18.17)." |
| 1584 |
msgstr "" |
| 1585 |
"基本データは通常、この属性にアクセスするたびに `bytes` " |
| 1586 |
"のコピーが作成される大きなメモリ領域です。たとえば、RGBAでレンダリングされた文字ページのsamplesサイズはほぼ1.4 " |
| 1587 |
"MBです。したがって、新しい変数に代入するか、`memoryview` バージョン :attr:`Pixmap.samples_mv` " |
| 1588 |
"(v1.18.17で新機能)を使用するか、などの検討が必要です。" |
| 1589 |
|
| 1590 |
#: ../../pixmap.rst:535 028c2991fa3746d8ba4fcb1363e0ac36 |
| 1591 |
msgid "" |
| 1592 |
"Any changes to the underlying data are available only after accessing " |
| 1593 |
"this attribute again. This is different from using the memoryview " |
| 1594 |
"version." |
| 1595 |
msgstr "基本データへの変更は、この属性に再度アクセスするまで利用できません。これは `memoryview` バージョンを使用する場合とは異なります。" |
| 1596 |
|
| 1597 |
#: ../../pixmap.rst:541 ../../pixmap.rst:563 6231b732cd664d9ea3f80fe04f0151c9 |
| 1598 |
#: a54baa772ece47f4b743977662b324a4 |
| 1599 |
msgid "New in v1.18.17" |
| 1600 |
msgstr "新機能 v1.18.17" |
| 1601 |
|
| 1602 |
#: ../../pixmap.rst:543 090480ef9ce349efab292a2a0fe883b7 |
| 1603 |
msgid "" |
| 1604 |
"Like :attr:`Pixmap.samples`, but in Python `memoryview` format. It is " |
| 1605 |
"built pointing to the memory in the pixmap -- not from a copy of it. So " |
| 1606 |
"its creation speed is independent from the pixmap size, and any changes " |
| 1607 |
"to pixels will be available immediately." |
| 1608 |
msgstr "" |
| 1609 |
":attr:`Pixmap.samples` と同様ですが、Pythonの `memoryview` " |
| 1610 |
"形式です。これはピクマップ内のメモリを指すように構築されており、コピーではありません。そのため、作成速度はピクマップのサイズに依存せず、ピクセルへの変更はすぐに利用可能です。" |
| 1611 |
|
| 1612 |
#: ../../pixmap.rst:545 93fdd4817c6d451593bce44eed03a5c1 |
| 1613 |
msgid "" |
| 1614 |
"Copies like `bytearray(pix.samples_mv)`, or `bytes(pixmap.samples_mv)` " |
| 1615 |
"are equivalent to and can be used in place of `pix.samples`." |
| 1616 |
msgstr "" |
| 1617 |
"`bytearray(pix.samples_mv)` や `bytes(pixmap.samples_mv)` " |
| 1618 |
"などのコピーは、`pix.samples` の代わりに使用でき、同等です。" |
| 1619 |
|
| 1620 |
#: ../../pixmap.rst:547 a15d8e7edd204441a7b9a76052a64fac |
| 1621 |
msgid "We also have `len(pix.samples) == len(pix.samples_mv)`." |
| 1622 |
msgstr "また、`len(pix.samples) == len(pix.samples_mv)` です。" |
| 1623 |
|
| 1624 |
#: ../../pixmap.rst:549 f7663a0870b54e46b8a6d53a9a5d3958 |
| 1625 |
msgid "" |
| 1626 |
"Look at this example from a 2 MB JPEG: the memoryview is **ten thousand " |
| 1627 |
"times faster**::" |
| 1628 |
msgstr "この2 MBのJPEGからのこの例をご覧ください: `memoryview` は **10000倍高速** です::" |
| 1629 |
|
| 1630 |
#: ../../pixmap.rst:556 4d36f9e0a4af4491be38efa57f54faf8 |
| 1631 |
msgid "" |
| 1632 |
"After the Pixmap has been destroyed, any attempt to use the memoryview " |
| 1633 |
"will fail with ValueError." |
| 1634 |
msgstr "" |
| 1635 |
|
| 1636 |
#: ../../pixmap.rst:559 91107ae487b14fe0b83a14f571082c55 |
| 1637 |
msgid "memoryview" |
| 1638 |
msgstr "" |
| 1639 |
|
| 1640 |
#: ../../pixmap.rst:565 d3bfaae3761a4c0eb851933ffe8701a3 |
| 1641 |
msgid "" |
| 1642 |
"Python pointer to the pixel area. This is a special integer format, which" |
| 1643 |
" can be used by supporting applications (such as PyQt) to directly " |
| 1644 |
"address the samples area and thus build their images extremely fast. For " |
| 1645 |
"example::" |
| 1646 |
msgstr "ピクセル領域へのPythonポインターです。これは特別な整数形式で、サポートするアプリケーション(PyQtなど)がサンプル領域に直接アクセスし、非常に高速に画像を構築できるように使用できます。例えば::" |
| 1647 |
|
| 1648 |
#: ../../pixmap.rst:570 92d9db2f39614549b2c8a9605c681e0b |
| 1649 |
msgid "" |
| 1650 |
"Both of the above lead to the same Qt image, but (2) can be **many " |
| 1651 |
"hundred times faster**, because it avoids an additional copy of the pixel" |
| 1652 |
" area." |
| 1653 |
msgstr "以下はQtイメージへの2つの方法ですが、(2)はピクセル領域の追加のコピーを回避するため、通常 **何百倍も高速** です。" |
| 1654 |
|
| 1655 |
#: ../../pixmap.rst:572 37f284851e024d87b4ae3d3f4b495885 |
| 1656 |
msgid "" |
| 1657 |
"Warning: after the Pixmap has been destroyed, the Python pointer will be " |
| 1658 |
"invalid and attempting to use it may crash the Python interpreter." |
| 1659 |
msgstr "" |
| 1660 |
|
| 1661 |
#: ../../pixmap.rst:579 ad8485f478d04d1791c23f7e6c8cf984 |
| 1662 |
msgid "" |
| 1663 |
"Contains *len(pixmap)*. This will generally equal *len(pix.samples)* plus" |
| 1664 |
" some platform-specific value for defining other attributes of the " |
| 1665 |
"object." |
| 1666 |
msgstr "" |
| 1667 |
"これは *pixmap の長さ* を含んでいます。通常、これは *pix.samples の長さ* " |
| 1668 |
"にプラットフォーム固有の他の属性を定義するためのいくつかの値を加えたものです。" |
| 1669 |
|
| 1670 |
#: ../../pixmap.rst:587 c1796fc010774081b59146b900edf924 |
| 1671 |
msgid "Width of the region in pixels." |
| 1672 |
msgstr "ピクセル単位の領域の幅。" |
| 1673 |
|
| 1674 |
#: ../../pixmap.rst:595 d21ef5432611489797b4691400ea9d15 |
| 1675 |
msgid "Height of the region in pixels." |
| 1676 |
msgstr "ピクセル単位の領域の高さ。" |
| 1677 |
|
| 1678 |
#: ../../pixmap.rst:601 5f88d51c88864babb326d12c5da3c8b4 |
| 1679 |
msgid "" |
| 1680 |
"X-coordinate of top-left corner in pixels. Cannot directly be changed -- " |
| 1681 |
"use :meth:`Pixmap.set_origin`." |
| 1682 |
msgstr "ピクセル単位での左上隅のX座標。直接変更できません。:meth:`Pixmap.set_origin` を使用してください。" |
| 1683 |
|
| 1684 |
#: ../../pixmap.rst:607 d82f9559530f4ed3a33c06c66cd24f3c |
| 1685 |
msgid "" |
| 1686 |
"Y-coordinate of top-left corner in pixels. Cannot directly be changed -- " |
| 1687 |
"use :meth:`Pixmap.set_origin`." |
| 1688 |
msgstr "ピクセル単位での左上隅のY座標。直接変更できません。:meth:`Pixmap.set_origin` を使用してください。" |
| 1689 |
|
| 1690 |
#: ../../pixmap.rst:613 26e889e8aa564bbea3553b3d55151e83 |
| 1691 |
#, fuzzy |
| 1692 |
msgid "" |
| 1693 |
"Number of components per pixel. This number depends on colorspace and " |
| 1694 |
"alpha. If colorspace is not ``None`` (stencil masks), then *Pixmap.n - " |
| 1695 |
"Pixmap.alpha == pixmap.colorspace.n* is true. If colorspace is ``None``, " |
| 1696 |
"then *n == alpha == 1*." |
| 1697 |
msgstr "" |
| 1698 |
"ピクセルごとのコンポーネントの数。この数は色空間とアルファに依存します。色空間が ``None`` " |
| 1699 |
"でない場合(ステンシルマスク)、*Pixmap.n - Pixmap.alpha == pixmap.colorspace.n* " |
| 1700 |
"がtrueです。色空間が ``None`` の場合、*n == alpha == 1* です。" |
| 1701 |
|
| 1702 |
#: ../../pixmap.rst:619 ddc7c2c6d915466a8673711ed573419a |
| 1703 |
msgid "" |
| 1704 |
"Horizontal resolution in dpi (dots per inch). Please also see " |
| 1705 |
":data:`resolution`. Cannot directly be changed -- use " |
| 1706 |
":meth:`Pixmap.set_dpi`." |
| 1707 |
msgstr "" |
| 1708 |
"水平解像度(dpi単位)。:data:`resolution` " |
| 1709 |
"も参照してください。直接変更できません。:meth:`Pixmap.set_dpi` を使用してください。" |
| 1710 |
|
| 1711 |
#: ../../pixmap.rst:625 5952023fee854e3f82d65f1dbcc33361 |
| 1712 |
msgid "" |
| 1713 |
"Vertical resolution in dpi (dots per inch). Please also see " |
| 1714 |
":data:`resolution`. Cannot directly be changed -- use " |
| 1715 |
":meth:`Pixmap.set_dpi`." |
| 1716 |
msgstr "" |
| 1717 |
"垂直解像度(dpi単位)。:data:`resolution` " |
| 1718 |
"も参照してください。直接変更できません。:meth:`Pixmap.set_dpi` を使用してください。" |
| 1719 |
|
| 1720 |
#: ../../pixmap.rst:631 966a193e7ae14efe944c435e65718b73 |
| 1721 |
msgid "" |
| 1722 |
"An information-only boolean flag set to ``True`` if the image will be " |
| 1723 |
"drawn using \"linear interpolation\". If ``False`` \"nearest neighbour " |
| 1724 |
"sampling\" will be used." |
| 1725 |
msgstr "" |
| 1726 |
"情報のみのブールフラグで、イメージが「線形補間」を使用して描画される場合に ``True`` に設定されます。``False`` " |
| 1727 |
"の場合、「最近傍サンプリング」が使用されます。" |
| 1728 |
|
| 1729 |
#: ../../pixmap.rst:638 32f8505442184689838784d6630b61ca |
| 1730 |
msgid "Supported Input Image Formats" |
| 1731 |
msgstr "サポートされている入力画像フォーマット" |
| 1732 |
|
| 1733 |
#: ../../pixmap.rst:639 708fca4db2a64b96a2de83796cd396e7 |
| 1734 |
msgid "" |
| 1735 |
"The following file types are supported as **input** to construct pixmaps:" |
| 1736 |
" **BMP, JPEG, GIF, TIFF, JXR, JPX**, **PNG**, **PAM** and all of the " |
| 1737 |
"**Portable Anymap** family (**PBM, PGM, PNM, PPM**). This support is two-" |
| 1738 |
"fold:" |
| 1739 |
msgstr "" |
| 1740 |
"次のファイルタイプは、ピクスマップを構築するための **入力** " |
| 1741 |
"としてサポートされています:**BMP、JPEG、GIF、TIFF、JXR、JPX**、**PNG**、**PAM**、およびすべての " |
| 1742 |
"**Portable Anymap** ファミリー(**PBM、PGM、PNM、PPM**)。このサポートは二重の方法で提供されています:" |
| 1743 |
|
| 1744 |
#: ../../pixmap.rst:641 4f4eb0bb22404ab184bf7ed8014abcc3 |
| 1745 |
msgid "" |
| 1746 |
"Directly create a pixmap with *Pixmap(filename)* or *Pixmap(byterray)*. " |
| 1747 |
"The pixmap will then have properties as determined by the image." |
| 1748 |
msgstr "" |
| 1749 |
"*Pixmap(ファイル名)* または *Pixmap(バイト配列)* " |
| 1750 |
"を使用してピクスマップを直接作成します。その後、ピクスマップには画像によって決定されるプロパティが含まれます。" |
| 1751 |
|
| 1752 |
#: ../../pixmap.rst:643 1f9a875b37444d988033c769493f20e4 |
| 1753 |
msgid "" |
| 1754 |
"Open such files with *pymupdf.open(...)*. The result will then appear as " |
| 1755 |
"a document containing one single page. Creating a pixmap of this page " |
| 1756 |
"offers all the options available in this context: apply a matrix, choose " |
| 1757 |
"colorspace and alpha, confine the pixmap to a clip area, etc." |
| 1758 |
msgstr "" |
| 1759 |
"*pymupdf.open(...)* " |
| 1760 |
"を使用してこのようなファイルを開きます。その結果、単一のページを含むドキュメントとして表示されます。このページのピクスマップを作成すると、このコンテキストで利用可能なすべてのオプションを使用できます:行列を適用、色空間とアルファを選択、ピクスマップをクリップエリアに制限などが含まれます。" |
| 1761 |
|
| 1762 |
#: ../../pixmap.rst:645 b8da58f972e349c099d429016189277f |
| 1763 |
msgid "" |
| 1764 |
"**SVG images** are only supported via method 2 above, not directly as " |
| 1765 |
"pixmaps. But remember: the result of this is a **raster image** as is " |
| 1766 |
"always the case with pixmaps [#f1]_." |
| 1767 |
msgstr "" |
| 1768 |
"**SVG画像** は、直接ピクスマップとしてではなく、上記の方法2でのみサポートされています。ただし、ピクスマップの場合と同様、その結果は " |
| 1769 |
"**ラスターイメージ** です [#f1]_。" |
| 1770 |
|
| 1771 |
#: ../../pixmap.rst:650 5eb573904fb7401cb281c16fb4549f3a |
| 1772 |
msgid "Supported Output Image Formats" |
| 1773 |
msgstr "サポートされている出力画像フォーマット" |
| 1774 |
|
| 1775 |
#: ../../pixmap.rst:651 e4357173b7ec40d892ee19fcd4f3b83d |
| 1776 |
msgid "" |
| 1777 |
"A number of image **output** formats are supported. You have the option " |
| 1778 |
"to either write an image directly to a file (:meth:`Pixmap.save`), or to " |
| 1779 |
"generate a bytes object (:meth:`Pixmap.tobytes`). Both methods accept a " |
| 1780 |
"string identifying the desired format (**Format** column below). Please " |
| 1781 |
"note that not all combinations of pixmap colorspace, transparency support" |
| 1782 |
" (alpha) and image format are possible." |
| 1783 |
msgstr "" |
| 1784 |
"いくつかの画像 **出力** " |
| 1785 |
"フォーマットがサポートされています。画像を直接ファイルに書き込むオプション(:meth:`Pixmap.save`)またはバイトオブジェクトを生成するオプション(:meth:`Pixmap.tobytes`)があります。どちらのメソッドも、希望の" |
| 1786 |
" **フォーマット** " |
| 1787 |
"を識別する文字列を受け入れます(下のフォーマット列)。ただし、すべてのピクスマップの色空間、透明度サポート(アルファ)、および画像フォーマットの組み合わせが可能であるわけではないことに注意してください。" |
| 1788 |
|
| 1789 |
#: ../../pixmap.rst:654 4dbea7a06e2b4187a123a1c604d44efe |
| 1790 |
msgid "**Format**" |
| 1791 |
msgstr "**フォーマット**" |
| 1792 |
|
| 1793 |
#: ../../pixmap.rst:654 80b26e8d30f3423393a42e35c1a19bb0 |
| 1794 |
msgid "**Colorspaces**" |
| 1795 |
msgstr "**カラースペース**" |
| 1796 |
|
| 1797 |
#: ../../pixmap.rst:654 227b7bee485d4b79a2402f03891614ea |
| 1798 |
msgid "**alpha**" |
| 1799 |
msgstr "**アルファ**" |
| 1800 |
|
| 1801 |
#: ../../pixmap.rst:654 9797dfa1d6b74610af214069c4ee23d6 |
| 1802 |
msgid "**Extensions**" |
| 1803 |
msgstr "**拡張子**" |
| 1804 |
|
| 1805 |
#: ../../pixmap.rst:654 a635c115d504411785c1bf1a3984582a |
| 1806 |
msgid "**Description**" |
| 1807 |
msgstr "**説明**" |
| 1808 |
|
| 1809 |
#: ../../pixmap.rst:656 3f28e0c2c0e44d239075c2258795286a |
| 1810 |
msgid "jpg, jpeg" |
| 1811 |
msgstr "" |
| 1812 |
|
| 1813 |
#: ../../pixmap.rst:656 ../../pixmap.rst:657 ../../pixmap.rst:663 |
| 1814 |
#: ../../pixmap.rst:664 18832c370236476095068f372050837f |
| 1815 |
#: 3eb2a94753b44fdd9c7731ef24aef48b 4a67821c83134b4db3e4be1914c17d60 |
| 1816 |
#: c83309e3c1934fc7ae1a973ebe7d1300 |
| 1817 |
msgid "gray, rgb, cmyk" |
| 1818 |
msgstr "" |
| 1819 |
|
| 1820 |
#: ../../pixmap.rst:656 ../../pixmap.rst:658 ../../pixmap.rst:659 |
| 1821 |
#: ../../pixmap.rst:661 ../../pixmap.rst:662 ../../pixmap.rst:663 |
| 1822 |
#: 02f9cb78532645d38d5abf940e1679f8 0cdb296b3e59480f8ec76bf53ac1c17b |
| 1823 |
#: 2e0bd0a838434201878c609cff82145c 73c34c7c328f4d31af9f2258cc254f0d |
| 1824 |
#: 947c1b80c66441799e2aba09091f8adb dd93afdec02947318d933a37f2c15024 |
| 1825 |
msgid "no" |
| 1826 |
msgstr "なし" |
| 1827 |
|
| 1828 |
#: ../../pixmap.rst:656 600504f9efd041ffb5b69ec388b137e9 |
| 1829 |
msgid ".jpg, .jpeg" |
| 1830 |
msgstr "" |
| 1831 |
|
| 1832 |
#: ../../pixmap.rst:656 26fa6ed5043a4a66a2c7adf39eb4e0cf |
| 1833 |
msgid "Joint Photographic Experts Group" |
| 1834 |
msgstr "" |
| 1835 |
|
| 1836 |
#: ../../pixmap.rst:657 6f1f99578dd84b0b96b1fb4707aac08b |
| 1837 |
msgid "pam" |
| 1838 |
msgstr "" |
| 1839 |
|
| 1840 |
#: ../../pixmap.rst:657 ../../pixmap.rst:660 ../../pixmap.rst:664 |
| 1841 |
#: 1389030dbadc408693776ddaa02d250f db4043e33252451d9cfa830afcf4325c |
| 1842 |
#: eb6f616d9083427b85a8e817b7b3c601 |
| 1843 |
msgid "yes" |
| 1844 |
msgstr "あり" |
| 1845 |
|
| 1846 |
#: ../../pixmap.rst:657 2f529016f72342f3ad621590a17c2720 |
| 1847 |
msgid ".pam" |
| 1848 |
msgstr "" |
| 1849 |
|
| 1850 |
#: ../../pixmap.rst:657 e2baced162604080b59bf27d358fda6c |
| 1851 |
msgid "Portable Arbitrary Map" |
| 1852 |
msgstr "" |
| 1853 |
|
| 1854 |
#: ../../pixmap.rst:658 95a9f8727e6846bdad7d42b2756dcf5e |
| 1855 |
msgid "pbm" |
| 1856 |
msgstr "" |
| 1857 |
|
| 1858 |
#: ../../pixmap.rst:658 ../../pixmap.rst:659 ../../pixmap.rst:660 |
| 1859 |
#: ../../pixmap.rst:661 ../../pixmap.rst:662 220d5771addc47059dfafb3b7fd7a809 |
| 1860 |
#: 68fd8f934dac404f86a38dcab3bb7bc2 91f4a25b5a5148af9a8c601bdc987ee9 |
| 1861 |
#: 9d56458bd5944b7eab22abdec12c33c6 da23d0d1e79b4239bc3b878fd251ed6f |
| 1862 |
msgid "gray, rgb" |
| 1863 |
msgstr "" |
| 1864 |
|
| 1865 |
#: ../../pixmap.rst:658 10546c5955514cb99a4533ae396c259f |
| 1866 |
msgid ".pbm" |
| 1867 |
msgstr "" |
| 1868 |
|
| 1869 |
#: ../../pixmap.rst:658 3a22578bed7f479ba9f8bd94ddba617b |
| 1870 |
msgid "Portable Bitmap" |
| 1871 |
msgstr "" |
| 1872 |
|
| 1873 |
#: ../../pixmap.rst:659 12f4977253d34e7fb05ef71f9b6bb875 |
| 1874 |
msgid "pgm" |
| 1875 |
msgstr "" |
| 1876 |
|
| 1877 |
#: ../../pixmap.rst:659 34b5715a5a94481fa5410ee5467f5ae1 |
| 1878 |
msgid ".pgm" |
| 1879 |
msgstr "" |
| 1880 |
|
| 1881 |
#: ../../pixmap.rst:659 06d8a88352b54e25b36fc1dbd2289ecc |
| 1882 |
msgid "Portable Graymap" |
| 1883 |
msgstr "" |
| 1884 |
|
| 1885 |
#: ../../pixmap.rst:660 31684d0764064d42a3a8d884741e85be |
| 1886 |
msgid "png" |
| 1887 |
msgstr "" |
| 1888 |
|
| 1889 |
#: ../../pixmap.rst:660 34455c189f334f3ab56545b979560b1b |
| 1890 |
msgid ".png" |
| 1891 |
msgstr "" |
| 1892 |
|
| 1893 |
#: ../../pixmap.rst:660 682ed1780ad3421e9223fdefb0b8184c |
| 1894 |
msgid "Portable Network Graphics" |
| 1895 |
msgstr "" |
| 1896 |
|
| 1897 |
#: ../../pixmap.rst:661 f94a2f8f962f47fc9c9b1a7e2a906e11 |
| 1898 |
msgid "pnm" |
| 1899 |
msgstr "" |
| 1900 |
|
| 1901 |
#: ../../pixmap.rst:661 964f7dfd9ae844129b05d2e56342317d |
| 1902 |
msgid ".pnm" |
| 1903 |
msgstr "" |
| 1904 |
|
| 1905 |
#: ../../pixmap.rst:661 d627891286e44ad3987520c5e705f3a1 |
| 1906 |
msgid "Portable Anymap" |
| 1907 |
msgstr "" |
| 1908 |
|
| 1909 |
#: ../../pixmap.rst:662 3ada12b4d8b84c17aac44fec31492b76 |
| 1910 |
msgid "ppm" |
| 1911 |
msgstr "" |
| 1912 |
|
| 1913 |
#: ../../pixmap.rst:662 29fa1a416b3345479d3cb7258b83155e |
| 1914 |
msgid ".ppm" |
| 1915 |
msgstr "" |
| 1916 |
|
| 1917 |
#: ../../pixmap.rst:662 9045e7c717ae4d61ae56392d64c8f030 |
| 1918 |
msgid "Portable Pixmap" |
| 1919 |
msgstr "" |
| 1920 |
|
| 1921 |
#: ../../pixmap.rst:663 b528c16c8d064788976a0d977cf72a73 |
| 1922 |
msgid "ps" |
| 1923 |
msgstr "" |
| 1924 |
|
| 1925 |
#: ../../pixmap.rst:663 3d3a984cad1f4a1ba8eca7cfbc0af43f |
| 1926 |
msgid ".ps" |
| 1927 |
msgstr "" |
| 1928 |
|
| 1929 |
#: ../../pixmap.rst:663 f472a32950f140dcbd4258d41e955e95 |
| 1930 |
msgid "Adobe PostScript Image" |
| 1931 |
msgstr "" |
| 1932 |
|
| 1933 |
#: ../../pixmap.rst:664 d30993e0b1534a1da119de1e713e1fe7 |
| 1934 |
msgid "psd" |
| 1935 |
msgstr "" |
| 1936 |
|
| 1937 |
#: ../../pixmap.rst:664 c340e5edd2234429989f7c57fcbe6d4f |
| 1938 |
msgid ".psd" |
| 1939 |
msgstr "" |
| 1940 |
|
| 1941 |
#: ../../pixmap.rst:664 5ad137cb3c0c44fb8491eab0123adabe |
| 1942 |
msgid "Adobe Photoshop Document" |
| 1943 |
msgstr "" |
| 1944 |
|
| 1945 |
#: ../../pixmap.rst:668 5b70a01cdd2d49678a5104943c6ceb05 |
| 1946 |
msgid "" |
| 1947 |
"Not all image file types are supported (or at least common) on all OS " |
| 1948 |
"platforms. E.g. PAM and the Portable Anymap formats are rare or even " |
| 1949 |
"unknown on Windows." |
| 1950 |
msgstr "" |
| 1951 |
"すべての画像ファイル形式がすべてのOSプラットフォームでサポートされているわけではありません(または少なくとも一般的ではありません)。たとえば、PAMおよびPortable" |
| 1952 |
" Anymap形式はWindowsでは珍しいか、またはまったく知られていません。" |
| 1953 |
|
| 1954 |
#: ../../pixmap.rst:669 ac24d0029a85434e89d87aea3c768299 |
| 1955 |
msgid "" |
| 1956 |
"Especially pertaining to CMYK colorspaces, you can always convert a CMYK " |
| 1957 |
"pixmap to an RGB pixmap with *rgb_pix = pymupdf.Pixmap(pymupdf.csRGB, " |
| 1958 |
"cmyk_pix)* and then save that in the desired format." |
| 1959 |
msgstr "" |
| 1960 |
"特にCMYKカラースペースに関連することについて、常にCMYK pixmapを *rgb_pix = " |
| 1961 |
"pymupdf.Pixmap(pymupdf.csRGB、cmyk_pix)* に変換し、その後、その形式で保存できます。" |
| 1962 |
|
| 1963 |
#: ../../pixmap.rst:670 0d389b2c11cb4b7dbad0be0409dbf4dc |
| 1964 |
msgid "" |
| 1965 |
"As can be seen, MuPDF's image support range is different for input and " |
| 1966 |
"output. Among those supported both ways, PNG and JPEG are probably the " |
| 1967 |
"most popular." |
| 1968 |
msgstr "ご覧のように、MuPDFの画像サポート範囲は入力と出力で異なります。両方の方法でサポートされているものの中で、PNGとJPEGはおそらく最も人気があります。" |
| 1969 |
|
| 1970 |
#: ../../pixmap.rst:671 78fe092f468843e984dee90661b2dbac |
| 1971 |
msgid "" |
| 1972 |
"We also recommend using \"ppm\" formats as input to tkinter's " |
| 1973 |
"*PhotoImage* method like this: *tkimg = " |
| 1974 |
"tkinter.PhotoImage(data=pix.tobytes(\"ppm\"))* (also see the tutorial). " |
| 1975 |
"This is **very** fast (**60 times** faster than PNG)." |
| 1976 |
msgstr "" |
| 1977 |
"また、tkinterの *PhotoImage* メソッドへの入力として「ppm」形式を使用することをお勧めします。*tkimg = " |
| 1978 |
"tkinter.PhotoImage(data=pix.tobytes(\"ppm\"))* のように(チュートリアルも参照してください)。これは" |
| 1979 |
" **非常に** 高速です(PNGよりも60倍速いです)。" |
| 1980 |
|
| 1981 |
#: ../../pixmap.rst:676 ae8dd148bf7a4c1ea2de109295f929f5 |
| 1982 |
msgid "Footnotes" |
| 1983 |
msgstr "脚注" |
| 1984 |
|
| 1985 |
#: ../../pixmap.rst:677 b53f5a80a69a41dea8df4b23d4e4be3d |
| 1986 |
msgid "" |
| 1987 |
"If you need a **vector image** from the SVG, you must first convert it to" |
| 1988 |
" a PDF. Try :meth:`Document.convert_to_pdf`. If this is not good enough, " |
| 1989 |
"look for other SVG-to-PDF conversion tools like the Python packages " |
| 1990 |
"`svglib <https://pypi.org/project/svglib>`_, `CairoSVG " |
| 1991 |
"<https://pypi.org/project/cairosvg>`_, `Uniconvertor " |
| 1992 |
"<https://sk1project.net/modules.php?name=Products&product=uniconvertor&op=download>`_" |
| 1993 |
" or the Java solution `Apache Batik <https://github.com/apache/batik>`_. " |
| 1994 |
"Have a look at our Wiki for more examples." |
| 1995 |
msgstr "" |
| 1996 |
"SVGから **ベクトル画像** " |
| 1997 |
"が必要な場合、まずそれをPDFに変換する必要があります。:meth:`Document.convert_to_pdf` " |
| 1998 |
"を試してみてください。これで十分でない場合、他のSVGからPDFへの変換ツールを探してみてください。Pythonパッケージ `svglib " |
| 1999 |
"<https://pypi.org/project/svglib>`_ 、 `CairoSVG " |
| 2000 |
"<https://pypi.org/project/cairosvg>`_ 、 `Uniconvertor " |
| 2001 |
"<https://sk1project.net/modules.php?name=Products&product=uniconvertor&op=download>`_" |
| 2002 |
" 、またはJavaソリューションである `Apache Batik <https://github.com/apache/batik>`_ " |
| 2003 |
"などがあります。詳細な例についてはWikiをご覧ください。" |
| 2004 |
|
| 2005 |
#: ../../pixmap.rst:679 7efc30a117974783984b2f586a774632 |
| 2006 |
msgid "" |
| 2007 |
"To also set the alpha property, add an additional step to this method by " |
| 2008 |
"dropping or adding an alpha channel to the result." |
| 2009 |
msgstr "アルファプロパティも設定する場合は、このメソッドに追加ステップを追加し、結果にアルファチャンネルを追加または削除してください。" |
| 2010 |
|
| 2011 |
#: ../../footer.rst:46 e3d72edf62c54080b2839fccccec965e |
| 2012 |
msgid "This documentation covers all versions up to |version|." |
| 2013 |
msgstr "このドキュメントは |version| までのすべてのバージョンを対象としています。" |
| 2014 |
|
| 2015 |
#~ msgid "" |
| 2016 |
#~ "Since v1.22.0, PyMuPDF supports JPEG " |
| 2017 |
#~ "output directly. For both, performance " |
| 2018 |
#~ "reasons and for reducing external " |
| 2019 |
#~ "dependencies, the use of this method " |
| 2020 |
#~ "is no longer recommended when outputting" |
| 2021 |
#~ " JPEG images." |
| 2022 |
#~ msgstr "" |
| 2023 |
#~ "v1.22.0 以降、PyMuPDF はJPEG " |
| 2024 |
#~ "出力を直接サポートしています。パフォーマンスの理由と外部の依存関係を減らすために、JPEG " |
| 2025 |
#~ "画像を出力する場合にはこのメソッドの使用は推奨されなくなりました。" |
| 2026 |
|
| 2027 |
#~ msgid ".raises ImportError: if Pillow is not installed." |
| 2028 |
#~ msgstr "**ImportError** -- Pillow がインストールされていない場合" |
| 2029 |
|
| 2030 |
#~ msgid "Discord logo" |
| 2031 |
#~ msgstr "" |
| 2032 |
|
| 2033 |
#~ msgid "a ˇˇPIL.Imageˇˇ object" |
| 2034 |
#~ msgstr "" |
| 2035 |
|
| 2036 |
#~ msgid "" |
| 2037 |
#~ "If the pixmap's colorspace is RGB " |
| 2038 |
#~ "with transparency, the alpha values may" |
| 2039 |
#~ " or may not already be multiplied " |
| 2040 |
#~ "into the color components ref/green/blue " |
| 2041 |
#~ "(called \"premultiplied\"). To enforce undoing" |
| 2042 |
#~ " premultiplication, set this parameter to" |
| 2043 |
#~ " `True`. To learn about some " |
| 2044 |
#~ "background, e.g. look for \"Premultiplied " |
| 2045 |
#~ "alpha\" `here " |
| 2046 |
#~ "<https://en.wikipedia.org/wiki/Glossary_of_computer_graphics#P>`_." |
| 2047 |
#~ msgstr "" |
| 2048 |
|