[comp.sys.apollo] gpr_$blt

GBOPOLY1@NUSVM.BITNET (fclim) (02/02/89)

hi,
     i am writing a gpr program and i wish to do some bit-block
transfer ops (blt); except i don't how to do certain things.
specifically:

(1) my dest window contains a pink diamond and the source has a
    blue smiling face.  i wish to have the smiling face replace
    the diamond (raster op == 3); however, i wish the color of
    the source to assume that of the dest.  how do i do this?

(2) i use pad_$create() to create a pad.  the dm will choose the
    color of the pad.  suppose the choosen color is beige (ie the
    pad; not its border).  then i call gpr_$init( gpr_$direct ),
    gpr_$allocate_hdm_bitmap(), gpr_$set_bitmap() to prepare the
    smiling face and diamond, etc.
    before i can draw circles and polygons, i have to clear the
    hidden-bitmap via gpr_$clear().  however, this make the
    background black is an ugly color.
    i could use gpr_$set_color_map().  but how do i find out which
    pixel value (between 8 and 15) that the dm has choosen?

(3) i like to make a portion of the visible bitmap blinks.  i know
    that i could use a blt, blt-ing between a blank source and the
    original dest.  but, is there a nicer method?  the portion
    i want blinking may be a group of irregular (not rectangular)
    regions.

i appreciate and thank all who give pointers to these questions.

fclim          --- gbopoly1 % nusvm.bitnet @ cunyvm.cuny.edu
computer centre
singapore polytechnic
dover road
singapore 0513.