Article View: comp.sys.amiga.tech
Article #10899Re: Intuition Questions....
From: Olivier Vayssettes
Date: Mon, 09 Jan 1989 08:36
Date: Mon, 09 Jan 1989 08:36
51 lines
2990 bytes
2990 bytes
> 1. There is no support in Intuition for drawing
> an Image structure in something like "COMPLEMENT"
> mode for IntuiText. I COULD use DrawImage() and
> then something like DrawRect() (I forget the name)
> in COMPLEMENT mode, but this would probably flash
> the display. I would prefer to use the graphics
> functions to take the same data from my Image
> structure and draw it in whatever mode I like,
> but I can't find any simple graphics function(s)
> to do this. (Do I have to use QBlit?).
What do you want do to? You cannot draw an Image complementing
the background because you erase it. It is not the same as printing
text or drawing lines,etc. The only way to do this is to use a 1
bit plane image that will not be drawn on the background, but will
be used as a pattern for complementing. This is not possible with a
built-in function so, you will have write your own. But you are not
obliged to use QBlit (unless if you want your function to be very fast)
If you want to avoid flashes while drawing, try WaitTOF() just
before drawing.
> 2. I would like to make a "fader" Gadget that looks a little
> bit more interesting than the ones I've been able to
> get Intuition to produce. I already have my own knob
> image, but it still has a bland looking border
> around the select box and I can't seem to put any pattern
> in the slider area (the knob will just erase it). While
> I'm usually against comparing, the M*C programs I've seen
> usually have more aesthetically pleasing proportional gadgets.
> Any suggestions?
I had this problem too. There is no way to avoid erasing the background
while moving the knob. I tried a solution consisting in waiting
MOUSEMOVE messages, and after each one, re-drawing the background.
But the result was not very good. The only solution I found until now
is creating a pseudo-gadget whose knob is a simple sprite (not VSprite).
This requires some mouse clicks and movement managing and is not really
equivalent to a real gadget but it is the less bad solution.
> 3. Is there a "canned" function to print the screen to
> the printer somewhere? If not, any PD source examples?
What does "canned" mean? (I am french, nobody's perfect :-) ). You can
print an Image with DPaintII but if you want to print a workbench
screen... I have been told about a function that does this, but it is
very long. I will contact you when y have more information.
Olivier Vayssettes
Universite de Bordeaux, France
Technical Details
Message-ID:
<521@geocub.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!inria!geocub!olvaReferences:
<347@lexicon.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!inria!geocub!olva From: olva@geocub.UUCP (Olivier Vayssettes ) Newsgroups: comp.sys.amiga.tech Subject: Re: Intuition Questions.... Message-ID: <521@geocub.UUCP> Date: 9 Jan 89 08:36:00 GMT References: <347@lexicon.UUCP> Organization: Universite de Bordeaux, France Lines: 51 In-reply-to: trh@lexicon.UUCP's message of 5 Jan 89 18:10:46 GMT