~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to general/g.pnmcomp/description.html

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<h2>DESCRIPTION</h2>
2
 
 
3
 
(culled from the mailing list)
4
 
<br>
5
 
<pre>
6
 
From: Glynn Clements 
7
 
Subject: Re: [GRASS5] Re: [GRASSLIST:10403] Transparency added
8
 
Date: Sun, 19 Feb 2006 20:17:59 +0000
9
 
 
10
 
g.pnmcomp isn't meant for end users. It's an internal tool for use by
11
 
a Tcl/Tk GUI.
12
 
 
13
 
In essence, g.pnmcomp generates a PPM image by overlaying a series of
14
 
PPM/PGM pairs (PPM = RGB image, PGM = alpha channel).
15
 
 
16
 
The intention is that d.* programs will emit PPM/PGM pairs (by way of
17
 
the PNG-driver code being integrated into libraster). The GUI will
18
 
manage a set of layers; each layer consists of the data necessary to
19
 
generate a PPM/PGM pair.
20
 
 
21
 
Whenever the layer "stack" changes (by adding, removing, hiding,
22
 
showing or re-ordering layers), the GUI will render any layers for
23
 
which it doesn't already have the PPM/PGM pair, then re-run g.pnmcomp
24
 
to generate the final image (just redoing the composition is a lot
25
 
faster than redrawing everything).
26
 
 
27
 
A C/C++ GUI would either have g.pnmcomp's functionality (image
28
 
composition) built-in, or would use the system's graphics API to
29
 
perform composition (for translucent layers, you would need OpenGL or
30
 
the Render extension, or something else which supports translucent
31
 
rendering).
32
 
 
33
 
Tk doesn't support transparent (masked) true-colour images (it does
34
 
support transparent GIFs, but that's limited to 256 colours), and an
35
 
image composition routine in Tcl would be unacceptably slow, hence
36
 
the existence of g.pnmcomp.
37
 
</pre>
38
 
 
39
 
<h2>AUTHOR</h2>
40
 
Glynn Clements
41
 
 
42
 
<p><i>Last changed: $Date: 2011-11-08 12:29:50 +0100 (Tue, 08 Nov 2011) $</i>