Painting In Z-Order?

Painting In Z-Order?

Post by Andy Wee » Tue, 03 Aug 1999 04:00:00

My drawing app supports the Barcode Balster printer, a black & white label
printer which features the FillBox command. A FillBox is a rectangle that
inverts the B&W color of whatever is directly underneath it. I need to
simulate the FillBox on screen for users to size & position it. It is
frequently used to put white text in a black box, or two or more of
different sizes are stacked to create a back frame.

The app must show this FillBox inversion effect and allow the user to drag
and resize FillBoxes as well. Can I take a snapshot of the form directly
underneath and invert it using CopyRect in the FillBoxes paint method? If
two or more FillBoxes overlap each would then correctly invert the prior one
(in z-order) where they overlap.

Is the bitmap of the main form (or parent) updated in memory as each object
is painted in z-order? Can my FillBox object access that bitmap with
CopyRect? This would allow each FillBox to "see" what has been painted up to
when it's own paint method is called, allowing the correct inverting of
multiple overlapped FillBoxes. Is this possible? How?



1. Help with painting algorithm printing order.

  I need some help about hidden faces, have anybody an algorithm to
determine it, Also need one to set the order in that I put triasngles in
screen (First deeper then neatest).
  So I usually can't read this group, Please EMail directly to me replies.


|     a a               star  -*-   ||-----------------------------
|    a   aeeeem   m           /|\   ||
|    a   ae   mm mmaaaa nnnn        || "You still don't know what you're
|    aaaaaccccm m m    a    n       || dealing with do you? Perfect organism.
|    a   ac   m   m aaaa    n       || Its structural perfection is matched
|    a   ac   m   m a  a    n       || only by its hostility...
|    a   accccm   m aaaaa   n       ||  I admire its purity, a survivor;
|                                   || unclouded by conscience, remorse or
\--------------ACEMAN---------------/| delusions of morality." -Ash-


If you reply to this message, your message WILL be *automatically* anonymized
and you are allocated an anon id. Read the help file to prevent this.

2. Computer Animation schools

3. WD90C31A-ZS Graphics Controller

4. A problem


6. Any maps of Mars?

7. Microtek ScanMaker 600 ZS -- opinions?

8. Microtek ScanMaker ZS -- opinions?

9. Problems with Microtek 300 ZS & 7200/90

10. TIFF Bit Ordering Versus Fill Order

11. Microtek 600 ZS Scanner driver for unix

12. Messiah order: did not receive order confirmation