<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Ludovic,<br>
<br>
This is possible, but a little tricky. It requires writing Python
code. So if I were to code a solution (and I may if you don't, but I
need to fix a few bugs first), I'd make a chimera extension that would
load an image into an OpenGL texture, then in the 2D drawing pass, I'd
draw it underneath everything that is currently drawn. The reason for
using a texture instead of a bitmap is to allow for high resolution
backgrounds for saving images.<br>
<br>
If you are inclined to write this yourself, code for a chimera
extension that does OpenGL in Python can be found in the
CHIMERA/share/Ilabel package. <br>
<br>
-- Greg<br>
<br>
On 6/23/2010 2:14 PM, Eric Pettersen wrote:
<blockquote cite="mid:0539BFA9-936E-4C84-B551-9ED04A2C1F79@cgl.ucsf.edu"
type="cite">
<div>
<div>On Jun 22, 2010, at 1:25 PM, Ludovic Autin wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div>Hi, <br>
<br>
I would like to know if its possible to use a PIL or a raw image as a
background image.<br>
And/Or can you help me figure out how to do it (maybe using some volume
from image functinoality).<br>
Ideally, I would like to be able to update in realtime this background
image (either using a thread, or a callback)</div>
</blockquote>
<br>
</div>
<div>Hi Ludovic,</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>The
developer
who could authoritatively answer your question (Greg Couch)
is out this week, so I'll take a stab at it: I don't think so. :-)
However, if your goal is to, say, make a movie with a background you
provide then you could write out image files with a transparent
background (described in this message: <a moz-do-not-send="true"
href="http://www.cgl.ucsf.edu/pipermail/chimera-users/2008-January/002197.html%29">http://www.cgl.ucsf.edu/pipermail/chimera-users/2008-January/002197.html)</a>
and use most any image-processing program to compose the Chimera images
with the background(s) you prefer.</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>Despite
my
flippant answer in the first sentence, I don't really know if it is
possible to directly change the background. When Greg gets back I hope
he will comment on that. Perhaps you could say more about what your
ultimate goal is?</div>
<div><br>
</div>
<div>--Eric</div>
<br>
<div apple-content-edited="true"> <span class="Apple-style-span"
style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px;">
<div style="word-wrap: break-word;">
<p style="margin: 0px;"><font
style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 16px; line-height: normal; font-size-adjust: none; font-stretch: normal;"
face="Helvetica" size="5"><span class="Apple-converted-space">
<span class="Apple-converted-space"> </span></span>Eric
Pettersen</font></p>
<p style="margin: 0px;"><font
style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 16px; line-height: normal; font-size-adjust: none; font-stretch: normal;"
face="Helvetica" size="5"><span class="Apple-converted-space">
<span class="Apple-converted-space"> </span></span>UCSF
Computer Graphics Lab</font></p>
<p style="margin: 0px;"><font
style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 16px; line-height: normal; font-size-adjust: none; font-stretch: normal;"
face="Helvetica" size="5"><span class="Apple-converted-space">
</span><a moz-do-not-send="true"
href="http://www.cgl.ucsf.edu">http://www.cgl.ucsf.edu</a></font></p>
</div>
</span></div>
</blockquote>
<br>
Hi Ludovic,<br>
<br>
Everything is possible. <br>
<br>
</body>
</html>