Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ outif.s(3) — NEWS-os 3.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

OUTIF(3)  —  UNIX Programmer’s Manual

名称

outif − CDIF バイナリおよびニーモニック形式データ出力ライブラリ

形式

#include <CDFF/cdif.h>
#include <CDFF/value.h> cc files ...  −l outif
 

解説

Outif library は、プログラム中から CDIF のソースコード(ニーモニック)もしくは バイナリコードを特定の File Pointer へ出力する fucntion library です。
 
function entryは大別して 3 つに分けられます。
 
(1) Control function
 
これらの function は CDIF のコマンドを出力する function ではありません。
 

──────────────────────────────────
function name    parameter   comments
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
if_Open(fp)     FILE ∗fp   出力する File Pointer を指定する
                  デフォルトは stdout
──────────────────────────────────
if_On()              出力を ON にする。デフォルトでは ON
──────────────────────────────────
if_Off()              出力を OFF にする
──────────────────────────────────
if_Source()            出力を CDIF Source で出力する
                  デフォルトは Binary
──────────────────────────────────
if_Binary()            出力を CDIF Binary で出力する
──────────────────────────────────
 (2) CDIF Command function
 これらの function は CDIF のコマンドを出力する function です。
 ──────────────────────────────────
function name          parameter   comments
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
if_end()
──────────────────────────────────
if_beginpage(orient,x,y) int orient,x,y orient:0=portrait
                          1=landscape
──────────────────────────────────
if_transform(x,y)        int x,y      Bmu 値
──────────────────────────────────
if_cliparea(x,y,w,h)      int x,y,w,h    Bmu 値
──────────────────────────────────
if_resetclip()
──────────────────────────────────
if_reset()
──────────────────────────────────
 ──────────────────────────────────
function name          parameter   comments
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
if_push()
──────────────────────────────────
if_pop()
──────────────────────────────────
if_flush(n)           int n     n:印刷枚数
──────────────────────────────────
if_setbmu(bmu)          int bmu    デフォルト:1200
──────────────────────────────────
if_setbau(bau)          int bau    デフォルト:1000
──────────────────────────────────
if_sethscale(ratio)       int ratio   千分率
──────────────────────────────────
if_setvscale(ratio)       int ratio   千分率
──────────────────────────────────
if_setcsize(bmu)         int bmu    Bmu 値
──────────────────────────────────
if_sethpitch(pitch)       int pitch   Bmu 値
──────────────────────────────────
if_setvpitch(pitch)       int pitch   Bmu 値
──────────────────────────────────
if_setslant(alpha)        int alpha   Bau 値
──────────────────────────────────
if_setrotate(alpha)       int alpha   Bau 値
──────────────────────────────────
if_setcscale(h,v)        int h,v    千分率
──────────────────────────────────
if_setcolor(r,g,b)        int r,g,b
──────────────────────────────────
if_setlwidth(width)       int width   Bmu 値
──────────────────────────────────
if_setface1(face)        int face    typeface(S)参照
──────────────────────────────────
if_setface2(face)        int face    typeface(S)参照
──────────────────────────────────
if_setextface(face)       int face    typeface(S)参照
──────────────────────────────────
if_setcattr(dopr,lid,     int dopr,lid,  graphic_operation(S)
     lw,fopr,fid)     lw,fopr,fid        参照
──────────────────────────────────
if_setdattr(opr,lid)       int opr,lid  graphic_operation(S)
                              参照
──────────────────────────────────
if_setfattr(opr,lid)       int opr,lid  graphic_operation(S)
                              参照
──────────────────────────────────
if_setiattr(opr)         int opr  graphic_operation(S)参照
──────────────────────────────────
if_setlinepat(lid,res,   int lid,res,width
      width,p)       char ∗p    image実体へのpointer
──────────────────────────────────
if_setfillpat(pid,res,  int lid,res,width,height
    width,height,p)     char ∗p    image実体へのpointer
──────────────────────────────────
 ──────────────────────────────────
function name          parameter   comments
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
if_setextdchar(face,code,  int face,code,res,
  res,width,height,p)     width,height
                 char ∗p    image実体へのpointer
──────────────────────────────────
if_setextvchar(face,   int face,code,res,bytes
    code,bytes,p)      char ∗p    image実体へのpointer
──────────────────────────────────
if_putchar1(code)        int code    Ascii
──────────────────────────────────
if_putchar2(code)        int code    JIS code
──────────────────────────────────
if_putextchar(code)       int code    EUC & 0x7f7f
──────────────────────────────────
if_putlimage(xres,wdot,p)   int xres,wdot  xres:dot/inch
                 char ∗p    p:actaul image
──────────────────────────────────
if_putimage(sample,xres,  int sample,xres,sample:bit/pixel
   yres,wdot,hdot,p)   yres,wdot,hdot
                 char ∗p    p:actual image
──────────────────────────────────
if_movea(x,y)          int x,y    Bmu 値
──────────────────────────────────
if_mover(dx,dy)         int dx,dy   Bmu 値
──────────────────────────────────
if_moveha(x)           int x     Bmu 値
──────────────────────────────────
if_movehr(dx)          int dx     Bmu 値
──────────────────────────────────
if_moveva(y)           int y     Bmu 値
──────────────────────────────────
if_movevr(dy)          int dy     Bmu 値
──────────────────────────────────
if_dapoint(x,y)         int x, y    Bmu 値
──────────────────────────────────
if_drpoint()
──────────────────────────────────
if_dapolyline(n,pos)       int n
                s_pos pos[]    posの要素数は n+1
──────────────────────────────────
if_drpolyline(n,pos)       int n
                s_pos pos[]    posの要素数は n
──────────────────────────────────
if_darectangle(x0,y0,x1,y1)  int x0,y0,x1,y1   Bmu 値
──────────────────────────────────
if_drrectangle(dx,dy)      int dx,dy     Bmu 値
──────────────────────────────────
if_daelliarc(mode,cx,cy,   int mode,cx,cy, mode:0=円弧/1=扇形
      dx,dy,sa,da,sl)dx,dy,sa,da,sl     2=弓形
──────────────────────────────────
if_drelliarc(mode,        int mode,   mode:0=円弧/1=扇形
      dx,dy,sa,da,sl)dx,dy,sa,da,sl     2:弓形
──────────────────────────────────
 ──────────────────────────────────
function name          parameter   comments
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
if_dabezier(x0,y0,x1,y1,   int x0,y0,x1,y1,   Bmu 値
      x2,y2,x3,y3)    x2,y2,x3,y3
──────────────────────────────────
if_drbezier(x1,y1,x2,y2,x3,y3) int x1,y1,     Bmu 値
                x2,y2,x3,y3
──────────────────────────────────
if_daspline(n,pos)        int n
                s_pos pos[]    posの要素数は n+1
──────────────────────────────────
if_drspline(n,pos)        int n
                s_pos pos[]    posの要素数は n
──────────────────────────────────
if_farectangle(x0,y0,x1,y1)  int x0,y0,x1,y1   Bmu 値
──────────────────────────────────
if_frrectangle(dx,dy)      int dx, dy     Bmu 値
──────────────────────────────────
if_fapolygon(n,pos)        int n
                s_pos pos[]    posの要素数は n+1
──────────────────────────────────
if_frpolygon(n,pos)        int n
                s_pos pos[]    posの要素数は n
──────────────────────────────────
if_faelliarc(mode,cx,cy,lx,ly, int mode,cx,cy, mode:0=楕円/1=扇形
       deg,ddeg,slant) lx,ly,deg,ddeg,slant   2=弓形
──────────────────────────────────
if_frelliarc(mode,lx,ly,    int mode,lx,ly, mode:0=楕円/1=扇形
      deg,ddeg,slant)deg,ddeg,slant     2=弓形
──────────────────────────────────
if_fgroup(n)           int n     n:fillng group要素数
──────────────────────────────────
if_fgline(sx,sy,ex,ey)    int sx,sy,ex,ey   Bmu 値
──────────────────────────────────
if_fgelliarc(mode,x,y,lx,ly,  int mode,x,y,  mode:0=楕円/1=扇形
       deg,ddeg,slant) lx,ly,deg,ddeg,slant   2=弓形
──────────────────────────────────
if_fgbezier(x0,y0,x1,y1,   int x0,y0,x1,y1,   Bmu 値
      x2,y2,x3,y3)    x2,y2,x3,y3
──────────────────────────────────
if_dgspline(n,pos)        int n
                s_pos pos[]    posの要素数は n+1
──────────────────────────────────
 (3) Command Macro function
 CDIF の command にはないが簡素化した parameter で call できるよう
にしたfunctionです。
 ──────────────────────────────────
function name          comments
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
if_daline(x0,y0,x1,y1)       実際にはif_dapolylineをcallする
──────────────────────────────────
if_drline(dx,dy)          実際にはif_drpolylineをcallする
──────────────────────────────────

関連ファイル

/usr/sony/include/CDFF/cdif.h
/usr/sony/include/CDFF/value.h

関連事項

『CDIF フォーマット仕様書』 cdff(S), asif(S), linedash(S), graphic_operation(S), typeface(S)

NEWS-OSRelease 3.3

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026