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z2r@b![(B
$B%G%#%9%W%l%$%W%j%_%F%#%V$N=*N;=hM}$r9T$&!#(B
$BDL>o!"%"%W%j%1!<%7%g%s$O;HMQ$7$J$$!#(B
$B%"%W%j%1!<%7%g%s$,$3$N4X?t$r8F$S=P$7$?$H$-$NF0:n$OJ]>Z$7$J$$!#(B
$B!Z%j%?!<%sCM![(B
=0 : $B@5>o=*N;(B
<0 : $B%(%i!<(B ($BH/@8$7$J$$(B)
$B!Z%(%i!<%3!<%I![(B
$BH/@8$7$J$$!#(B
gcls_env
Delete Drawing Environment
gcls_env
$B!Z7A<0![(B
ERR gcls_env ( GID gid )
$B!Z2r@b![(B
gid $B$G;XDj$7$?IA2h4D6-$r:o=|$9$k!#(B
$BIA2h4D6-$r@8@.$7$?%W%m%;%9$N$_$,$=$NIA2h4D6-$r:o=|2DG=$G$"$j!"(B $B$=$&$G$J$$>l9g$K$O(B EG_GID $B$N%(%i!<$H$J$k!#(B
$B!Z%j%?!<%sCM![(B
=0(E_OK) : $B@5>o=*N;(B
<0 : $B%(%i!<(B ($B4X?tCM$O%(%i!<%3!<%I(B)
$B!Z%(%i!<%3!<%I![(B
EG_GID:
$B;XDj$7$?IA2h4D6-(BID$B$,IT@5(B($BB8:_$7$J$$(B)$B!#(B
gopn_dev
Open Devide Drawing Environment
gopn_dev
$B!Z7A<0![(B
GID gopn_dev ( TC *dev, B *par )
$B!Z2r@b![(B

dev $B$G;XDj$7$?%G%P%$%9$KBP$9$k!V%G%P%$%9IA2h4D6-!W$r?75,$K@8@.$7!"$=$N(B $BIA2h4D6-(BID$B$r4X?tCM$H$7$FLa$9!#(B $B8GM-%S%C%H%^%C%W$r;}$?$J$$%G%P%$%9$N(B $B>l9g$O!"(BEG_DEV$B$N%(%i!<$H$J$k!#(B

$B@8@.$5$l$?IA2h4D6-$N3F%G!<%?$O!"0J2<$N$h$&$K=i4|2=$5$l$k!#(B

    $BBP>]%G%P%$%9(B        : dev
    $BBP>]%S%C%H%^%C%W(B    : dev $B$N8GM-%S%C%H%^%C%W(B
    $B%^%9%/%T%/%;%kCM(B    : $BGr(B(0)
    $B%U%l!<%`D9J}7A(B      : $B%S%C%H%^%C%W$N(B bounds $BD9J}7A(B
    $BI=<(D9J}7A(B          : $B%S%C%H%^%C%W$N(B bounds $BD9J}7A(B
    $BA0CVD9J}7A%j%9%H(B    : $BL$Dj5A(B
    $B%/%j%C%T%s%0NN0h(B    : $BL$Dj5A(B
    $B@~%^%9%/%Q%?!<%s(B    : $BpJs(B  : $BL$Dj5A(B
$B!Z%j%?!<%sCM![(B
$B!f(B0 : $B@5>o=*N;(B($B4X?tCM$OIA2h4D6-(BID)
< 0 : $B%(%i!<(B ($B4X?tCM$O%(%i!<%3!<%I(B)
$B!Z%(%i!<%3!<%I![(B
EG_ADR
$B;XDj$5$l$?%"%I%l%9(B(dev)$B$N%a%b%j$N%"%/%;%9$O5v$5$l$F$$$J$$!#(B
EG_DEV
$B;XDj$7$?%G%P%$%9$N%?%$%W$,IT@5$G$"$k!#(B
EG_LIMIT
$B%7%9%F%`$N@)8B$r1[$($?!#(B($B%*!<%W%s2DG=$JIA2h4D6-$N:GBg?t$r1[$($?(B)
EG_NOEXS
$B;XDj$5$l$?%G%P%$%9(B(dev)$B$OEPO?$5$l$F$$$J$$!#(B
EG_NOSPC
$B%7%9%F%`$N%a%b%j$,ITB-$7$?!#(B
gopn_mem
Open Memory Drawing Environment
gopn_mem
$B!Z7A<0![(B
GID gopn_mem ( TC *dev, BMP *bmap, B *par )
$B!Z2r@b![(B

dev $B$G;XDj$7$?%G%P%$%9$KBP$9$k!V%a%b%jIA2h4D6-!W$r?75,$K@8@.$7!"$=$NIA(B $B2h4D6-(BID$B$r4X?tCM$H$7$FLa$9!#IA2hMQ$N%S%C%H%^%C%W$O(B bmap $B$G;XDj$7$?$b(B $B$N$,;HMQ$5$l$k!#;XDj$7$?%G%P%$%9$,%+%i!<%^%C%W$r;}$D>l9g$O!"%+%i!<%^%C(B $B%W$r6&M-$9$k$3$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%9$N%?%$%W$,IT@5$G$"$k!#(B
EG_LIMIT
$B%7%9%F%`$N@)8B$r1[$($?!#(B($B%*!<%W%s2DG=$JIA2h4D6-$N:GBg?t$r1[$($?(B)
EG_NOEXS
$B;XDj$5$l$?%G%P%$%9(B(dev)$B$OEPO?$5$l$F$$$J$$!#(B
EG_NOSPC
$B%7%9%F%`$N%a%b%j$,ITB-$7$?!#(B
EG_PAR
$B%Q%i%a!<%?$,IT@5!"$^$?$OHO0O30$G$"$k!#(Bbmap $B$NFbMF$,IT@5!"(Bpar $B$NFbMF$,IT@5(B($B%+%i!<>pJsIU$-HFMQ%a%b%jIA2h4D6-$N>l9g(B)
gnew_env
Open New Drawing Environment
gnew_env
$B!Z7A<0![(B
GID gnew_env ( GID gid )
$B!Z2r@b![(B
gid $B$G;XDj$7$?IA2h4D6-$HA4$/F1$8FbMF$r;}$DIA2h4D6-$r?7$?$K@8@.(B($BJ#@=(B)$B$7!"(B $B$=$NIA2h4D6-(BID$B$r4X?tCM$H$7$FLa$9!#(B $B%G%P%$%9>pJs!"%+%i!<>pJs!"%+%i!<%^%C%W!"%S%C%H%^%C%W(B(BMP.baseaddr $B$N%G(B $B!<%?NN0h(B)$B$O@[email protected]$H6&M-$5$l$k!#(B
$B!Z%j%?!<%sCM![(B
$B!f(B 0 : $B@5>o=*N;(B($B4X?tCM$OIA2h4D6-(BID)
< 0 : $B%(%i!<(B ($B4X?tCM$O%(%i!<%3!<%I(B)
$B!Z%(%i!<%3!<%I![(B
EG_GID
$B;XDj$7$?IA2h4D6-(BID$B$,IT@5(B($BB8:_$7$J$$(B)$B!#(B
EG_LIMIT
$B%7%9%F%`$N@)8B$r1[$($?!#(B($B%*!<%W%s2DG=$JIA2h4D6-$N:GBg?t$r1[$($?(B)
EG_NOSPC
$B%7%9%F%`$N%a%b%j$,ITB-$7$?!#(B
gini_env
Initialize Drawing Environment
gini_env
$B!Z7A<0![(B
ERR gini_env ( GID gid )
$B!Z2r@b![(B
gid $B$G;XDj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%b%jIA2h4D6-(B
< 0 : $B%(%i!<(B ($B4X?tCM$O%(%i!<%3!<%I(B)
$B!Z%(%i!<%3!<%I![(B
EG_ADR
$B;XDj$5$l$?%"%I%l%9(B(dev)$B$N%a%b%j$N%"%/%;%9$O5v$5$l$F$$$J$$!#(B
EG_GID
$B;XDj$7$?IA2h4D6-(BID$B$,IT@5(B($BB8:_$7$J$$(B)$B!#(B
gget_dsp
Get Device Specification
gget_dsp
$B!Z7A<0![(B
ERR gget_dsp ( W gid, DEVSPEC *buf )
$B!Z2r@b![(B
gid $B$G;XDj$7$?IA2h4D6-$NBP>]%G%P%$%9>pJs$r(B buf $B$K;XDj$7$?NN0h$K3JG<$9(B $B$k!#BP>]%G%P%$%9$,B8:_$7$J$$>l9g(B($BHFMQ%a%b%jIA2h4D6-(B)$B$O(B EG_DEV $B$H$J$k!#(B
$B!Z%j%?!<%sCM![(B
$B!f#0(B : $B@5>o=*N;(B($B4X?tCM$O(B0=$B%G%P%$%9IA2h4D6-!?(B1=$B%a%b%jIA2h4D6-(B)
<0 : $B%(%i!<(B ($B4X?tCM$O%(%i!<%3!<%I(B)
$B!Z%(%i!<%3!<%I![(B
EG_ADR
$B;XDj$5$l$?%"%I%l%9(B(buf)$B$N%a%b%j$N%"%/%;%9$O5v$5$l$F$$$J$$!#(B
EG_GID
$B;XDj$7$?IA2h4D6-(BID$B$,IT@5(B($BB8:_$7$J$$(B)$B!#(B
gget_csp
Get Color Specification
gget_csp
$B!Z7A<0![(B
ERR gget_csp ( W gid, CSPEC *buf )
$B!Z2r@b![(B
gid $B$G;XDj$7$?IA2h4D6-$N%+%i!<>pJs$r(B buf $B$K;XDj$7$?NN0h$K3JG<$9$k!#$?(B $B$@$7!"(Bcolmap $B$O%+%i!<%^%C%WJ}<0$G$"$C$F$b3JG<$5$l$:>o$K(B NULL $B$,@_Dj$5(B $B$l$k!#%+%i!<%^%C%W$OJL$K(B gget_col() $B$GpJs$,(B $BB8:_$7$J$$>l9g$O(B EG_D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$B;XDj$7$?IA2h4D6-(BID$B$,IT@5(B($BB8:_$7$J$$(B)$B!#(B
gget_bcs
Get Bitmap Convert Color Specification
gget_bcs
$B!Z7A<0![(B
ERR gget_bcs ( GID gid, CSPEC *cspec )
$B!Z2r@b![(B
gid $B$G;XDj$7$?IA2h4D6-$KBP$7$F!"?'JQ49MQ$N(BCSPEC$B$r CSPEC.colmap = NULL $B$G$J$$>l9g!"%+%i!<%^%C%W$, CSPEC.colmap = NULL $B$N>l9g!"IA2h4D6-$K@_Dj$5$l$F$$$k?'JQ49MQ%+%i!<>pJs$,(B $B%+%i!<%^%C%W7A<0$G$"$C$F$b!"%+%i!<%^%C%W$O$B!Z%j%?!<%sCM![(B
0 : $B@5>o=*N;(B
< 0 : $B%(%i!<(B ($B4X?tCM$O%(%i!<%3!<%I(B)
$B!Z%(%i!<%3!<%I![(B
EG_ADR
$B;XDj$5$l$?%"%I%l%9(B(cspec)$B$N%a%b%j$N%"%/%;%9$O5v$5$l$F$$$J$$!#(B
EG_ENV
$B%G%P%$%9$O%+%i!<>pJs$r;}$C$F$$$J$$!#$^$?$O?'JQ49MQ%+%i!<>pJs$OL$Dj5A$G$"$k!#(B
EG_GID
$B;XDj$7$?IA2h4D6-(BID$B$,IT@5(B($BB8:_$7$J$$(B)$B!#(B

2.3.2 $B%+%i!<%^%C%W$NA`:n(B

gset_col
Set Color Map Entries
gset_col
$B!Z7A<0![(B
W gset_col ( GID gid, UW p, COLOR *cv, UW cnt )
$B!Z2r@b![(B

gid $B$G;XDj$7$?IA2h4D6-$N%+%i!<%^%C%W$N(B p $B$G;XDj$7$?%(%s%H%j$+$iO"B3$7(B $B$?(B cnt $B8D$N%(%s%H%j$r(B cv $B$G;XDj$7$?CM$K@_Dj$7!"(B $B

$B%+%i!<%^%C%W$r;}$?$J$$$+!"@_Dj2DG=$G$J$$%+%i!<%^%C%W$r;}$DIA2h4D6-$N>l9g$O(B EG_ENV $B$N%(%i!<$H$J$k!#(B

$B!Z%j%?!<%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$BIA2h4D6-%l%3!<%I$N%"%/%;%9(B

gset_msk
Set Mask Pixel Value
gset_msk
$B!Z7A<0![(B
ERR gset_msk ( GID gid, PIXVAL pixv )
$B!Z2r@b![(B
gid $B$G;XDj$7$?IA2h4D6-$N!V%^%9%/%T%/%;%kCM!W$r(B pixv $B$G;XDj$7$?CM$KJQ(B $B99$9$k!#(B
$B!Z%j%?!<%sCM![(B
=0(E_OK) : $B@5>o=*N;(B
<0 : $B%(%i!<(B ($B4X?tCM$O%(%i!<%3!<%I(B)
$B!Z%(%i!<%3!<%I![(B
EG_GID
$B;XDj$7$?IA2h4D6-(BID$B$,IT@5(B($BB8:_$7$J$$(B)$B!#(B
EG_NOSPT
$B8=:_$N%$%s%W%j%a%s%H$G$O%5%]!<%H$7$F$$$J$$!"(B $B$b$7$/$OM=Ls$5$l$F$$$k%Q%i%a!<%?CM$G$"$k!#(B
gget_msk
Get Mask Pixel Value
gget_msk
$B!Z7A<0![(B
ERR gget_msk ( GID gid, PIXVAL OUT *pixv )
$B!Z2r@b![(B
gid $B$G;XDj$7$?IA2h4D6-$N!V%^%9%/%T%/%;%kCM!W$r$B!Z%j%?!<%sCM![(B
=0(E_OK) : $B@5>o=*N;(B
<0 : $B%(%i!<(B ($B4X?tCM$O%(%i!<%3!<%I(B)
$B!Z%(%i!<%3!<%I![(B
EG_GID
$B;XDj$7$?IA2h4D6-(BID$B$,IT@5(B($BB8:_$7$J$$(B)$B!#(B
EG_NOSPT
$B8=:_$N%$%s%W%j%a%s%H$G$O%5%]!<%H$7$F$$$J$$!"(B $B$b$7$/$OM=Ls$5$l$F$$$k%Q%i%a!<%?CM$G$"$k!#(B
gget_clp
Get Clipping Region
gget_clp
$B!Z7A<0![(B
ERR gget_clp ( GID gid, GRGN *clip, W csize, W *a_size )
$B!Z2r@b![(B

gid $B$G;XDj$7$?IA2h4D6-$N!V%/%j%C%T%s%0NN0h!W$r(B csize $B%P%$%H$N(B clip $B$N(B $BNN0h$K@_Dj$9$k!#(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<%3!<%I(B)
$B!Z%(%i!<%3!<%I![(B
EG_GID
$B;XDj$7$?IA2h4D6-(BID$B$,IT@5(B($BB8:_$7$J$$(B)$B!#(B
EG_PAR
$B%Q%i%a!<%?$,IT@5!"$^$?$OHO0O30$G$"$k!#(B
gget_vis
Get Visible Rectangle
gget_vis
$B!Z7A<0![(B
ERR gget_vis ( GID gid, RECT *rp )
$B!Z2r@b![(B
gid $B$G;XDj$7$?IA2h4D6-$N8=:_$N!VI=<(D9J}7A!W$r(B rp $B$G;XDj$7$?NN0h$K$B!Z%j%?!<%sCM![(B
= 0 (E_OK) : $B@5>o=*N;(B
< 0 : $B%(%i!<(B ($B4X?tCM$O%(%i!<%3!<%I(B)
$B!Z%(%i!<%3!<%I![(B
EG_ADR
$B;XDj$5$l$?%"%I%l%9(B(rp)$B$N%a%b%j$N%"%/%;%9$O5v$5$l$F$$$J$$!#(B
EG_GID
$B;XDj$7$?IA2h4D6-(BID$B$,IT@5(B($BB8:_$7$J$$(B)$B!#(B
gset_vis
Set Visible Rectangle
gset_vis
$B!Z7A<0![(B
ERR gset_vis ( GID gid, RECT r )
$B!Z2r@b![(B
gid $B$G;XDj$7$?IA2h4D6-$N!VI=<(D9J}7A!W$r(B r $B$G;XDj$7$?D9J}7A$KJQ99$9$k!#(B
$B!Z%j%?!<%sCM![(B
=0(E_OK) : $B@5>o=*N;(B
<0 : $B%(%i!<(B ($B4X?tCM$O%(%i!<%3!<%I(B)
$B!Z%(%i!<%3!<%I![(B
EG_GID
$B;XDj$7$?IA2h4D6-(BID$B$,IT@5(B($BB8:_$7$J$$(B)$B!#(B
EG_PAR
$B%Q%i%a!<%?$,IT@5!"$^$?$OHO0O30$G$"$k!#(B
gget_for
Get Foreground Rectangle List
gget_for
$B!Z7A<0![(B
ERR gget_for ( GID gid, RLIST *rlp )
$B!Z2r@b![(B
gid $B$G;XDj$7$?IA2h4D6-$N8=:_$N!VA0CVD9J}7A%j%9%H!W$r(B rlp $B$G;XDj$7$?NN(B $B0h$K$B!Z%j%?!<%sCM![(B
=0(E_OK) : $B@5>o=*N;(B
<0 : $B%(%i!<(B ($B4X?tCM$O%(%i!<%3!<%I(B)
$B!Z%(%i!<%3!<%I![(B
EG_ADR
$B;XDj$5$l$?%"%I%l%9(B(rp)$B$N%a%b%j$N%"%/%;%9$O5v$5$l$F$$$J$$!#(B
EG_GID
$B;XDj$7$?IA2h4D6-(BID$B$,IT@5(B($BB8:_$7$J$$(B)$B!#(B
gset_for
Set Foreground Rectangle List
gset_for
$B!Z7A<0![(B
ERR gset_for ( GID gid, RLIST *rlp )
$B!Z2r@b![(B
gid $B$G;XDj$7$?IA2h4D6-$N!VA0CVD9J}7A%j%9%H!W$r(B rlp $B$G;XDj$7$?D9J}7A%j(B $B%9%H$KJQ99$9$k!#(Brlp $B$,(B NULL $B$N>l9g!"!VA0CVD9J}7A%j%9%H!W$r6u!JL$Dj5A!K(B $B$K$9$k!#(B
$B!Z%j%?!<%sCM![(B
=0(E_OK) : $B@5>o=*N;(B
<0 : $B%(%i!<(B ($B4X?tCM$O%(%i!<%3!<%I(B)
$B!Z%(%i!<%3!<%I![(B
EG_GID
$B;XDj$7$?IA2h4D6-(BID$B$,IT@5(B($BB8:_$7$J$$(B)$B!#(B
EG_PAR
$B%Q%i%a!<%?$,IT@5!"$^$?$OHO0O30$G$"$k!#(B
gsiz_pat
Get Pattern Image Size
gsiz_pat
$B!Z7A<0![(B
ERR gsiz_pat ( GID gid, UW kind, UW hsize, UW vsize, W *size )
$B!Z2r@b![(B

gid $B$G;XDj$7$?IA2h4D6->e$G$NIA2h$G;HMQ$9$kFbIt%Q%?!<%s%$%a!<%8$r3JG<$9(B $B$k$?$a$KI,MW$J%a%b%jNN0hA4BN$N%P%$%H%5%$%:$r

kind $B$O;HMQ$9$k%Q%?!<%s$N%?%$%W$G$"$j!"FbIt%Q%?!<%s$G$"$C$F$O$$$1$J$$!#(B hsize, vsize $B$O!";HMQ$9$k%Q%?!<%s$N2#%5%$%:!"=D%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