ホーム › Graphics.Printing › BranchOfficeJobDataRendered
BranchOfficeJobDataRendered
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| Size | LONGLONG | 8 | +0 | +0 | レンダリング済みデータのサイズをバイト単位で示す64ビット値。 |
| ICMMethod | DWORD | 4 | +8 | +8 | 適用された色管理(ICM)方式を示す値。 |
| Color | SHORT | 2 | +12 | +12 | カラー印刷かモノクロかを示す値(DEVMODEのdmColor相当)。 |
| PrintQuality | SHORT | 2 | +14 | +14 | 印刷品質を示す値。負値はDPI、正値は解像度定数。 |
| YResolution | SHORT | 2 | +16 | +16 | Y方向の印刷解像度をDPIで示す。 |
| Copies | SHORT | 2 | +18 | +18 | 印刷部数。 |
| TTOption | SHORT | 2 | +20 | +20 | TrueTypeフォントの処理方法を示す値(DEVMODEのdmTTOption相当)。 |
各言語での定義
#include <windows.h>
// BranchOfficeJobDataRendered (x64 24 / x86 24 バイト)
typedef struct BranchOfficeJobDataRendered {
LONGLONG Size;
DWORD ICMMethod;
SHORT Color;
SHORT PrintQuality;
SHORT YResolution;
SHORT Copies;
SHORT TTOption;
} BranchOfficeJobDataRendered;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct BranchOfficeJobDataRendered
{
public long Size;
public uint ICMMethod;
public short Color;
public short PrintQuality;
public short YResolution;
public short Copies;
public short TTOption;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure BranchOfficeJobDataRendered
Public Size As Long
Public ICMMethod As UInteger
Public Color As Short
Public PrintQuality As Short
Public YResolution As Short
Public Copies As Short
Public TTOption As Short
End Structureimport ctypes
from ctypes import wintypes
class BranchOfficeJobDataRendered(ctypes.Structure):
_fields_ = [
("Size", ctypes.c_longlong),
("ICMMethod", wintypes.DWORD),
("Color", ctypes.c_short),
("PrintQuality", ctypes.c_short),
("YResolution", ctypes.c_short),
("Copies", ctypes.c_short),
("TTOption", ctypes.c_short),
]#[repr(C)]
pub struct BranchOfficeJobDataRendered {
pub Size: i64,
pub ICMMethod: u32,
pub Color: i16,
pub PrintQuality: i16,
pub YResolution: i16,
pub Copies: i16,
pub TTOption: i16,
}import "golang.org/x/sys/windows"
type BranchOfficeJobDataRendered struct {
Size int64
ICMMethod uint32
Color int16
PrintQuality int16
YResolution int16
Copies int16
TTOption int16
}type
BranchOfficeJobDataRendered = record
Size: Int64;
ICMMethod: DWORD;
Color: Smallint;
PrintQuality: Smallint;
YResolution: Smallint;
Copies: Smallint;
TTOption: Smallint;
end;const BranchOfficeJobDataRendered = extern struct {
Size: i64,
ICMMethod: u32,
Color: i16,
PrintQuality: i16,
YResolution: i16,
Copies: i16,
TTOption: i16,
};type
BranchOfficeJobDataRendered {.bycopy.} = object
Size: int64
ICMMethod: uint32
Color: int16
PrintQuality: int16
YResolution: int16
Copies: int16
TTOption: int16struct BranchOfficeJobDataRendered
{
long Size;
uint ICMMethod;
short Color;
short PrintQuality;
short YResolution;
short Copies;
short TTOption;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; BranchOfficeJobDataRendered サイズ: 24 バイト(x64)
dim st, 6 ; 4byte整数×6(構造体サイズ 24 / 4 切り上げ)
; Size : LONGLONG (+0, 8byte) qpoke st,0,値 / qpeek(st,0) ※IronHSPのみ。3.7/3.8は lpoke st,0,下位 : lpoke st,4,上位
; ICMMethod : DWORD (+8, 4byte) st.2 = 値 / 値 = st.2 (lpoke/lpeek も可)
; Color : SHORT (+12, 2byte) wpoke st,12,値 / 値 = wpeek(st,12)
; PrintQuality : SHORT (+14, 2byte) wpoke st,14,値 / 値 = wpeek(st,14)
; YResolution : SHORT (+16, 2byte) wpoke st,16,値 / 値 = wpeek(st,16)
; Copies : SHORT (+18, 2byte) wpoke st,18,値 / 値 = wpeek(st,18)
; TTOption : SHORT (+20, 2byte) wpoke st,20,値 / 値 = wpeek(st,20)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global BranchOfficeJobDataRendered
#field int64 Size
#field int ICMMethod
#field short Color
#field short PrintQuality
#field short YResolution
#field short Copies
#field short TTOption
#endstruct
stdim st, BranchOfficeJobDataRendered ; NSTRUCT 変数を確保
st->Size = 100
mes "Size=" + st->Size