Processing (BETA) version 135+ のリファレンスです。
旧バージョン使用者はソフトウェア内のリファレンスを参照してください。
この文書は Processing のAPIリファレンスを日本語に訳したものです。
最新の内容は 英語版 で確認して下さい。
| Name | loadBytes() |
||
|---|---|---|---|
| Examples | // open a file and read its binary data
byte b[] = loadBytes("something.dat");
// print each value, from 0 to 255
for (int i = 0; i < b.length; i++) {
// every tenth number, start a new line
if ((i % 10) == 0) {
println();
}
// bytes are from -128 to 127, this converts to 0 to 255
int a = b[i] & 0xff;
print(a + " ");
}
// print a blank line at the end
println(); |
||
| Description | 読み込んだファイル、または URL の内容をバイト型の配列に格納します。 指定するファイルは sketch の "data" ディレクトリ内に配置しなければなりません。 | ||
| Syntax | loadBytes(filename); |
||
| Parameters |
|
||
| Usage | Web & Application | ||
| Related | loadStrings() saveStrings() saveBytes() |
この文書の原文はクリエイティブ・コモンズ(Creative Commons)のAttribution-Noncommercial-Share Alike(表示・非営利・継承) ライセンスで公開されています。
このライセンスは同一の許諾条件の下で原作者のクレジットを表示し、また作品を営利目的で利用しなければ、作品に対して複製、頒布、展示、実演、二次的著作物の作成が行えることを示します。
© 2007 Processing.org
© 2007 Processing.org

