I persist to think that allowing to unify all kind of bitmap creation settings could be a great facility ! In Xara (the commercial version) exporting bitmaps and creating bitmap copies have exactly the same dialog box. I used it a lot in the past and that's fantastic for productivity for example when you must create lots of small bitmaps for brushes or scattering.

About background opacifying two filters do it : Flatten transparency and Fill Background (the latter even allows to fill background with an image).

But what I would see in Inkscape is a true " quick area resterizing" which could work with or without transparency. But this kind of "area capture" could be done also as an instant bitmap conversion of a clipped or masked area (however at the moment this isn't possible with Mask because of the SVG1 alpha problem) The two in one Clip and rasterize would be a very productive feature !

ivan


De : Jasper van de Gronde <th.v.d.gronde@...528...>
À : inkscape-devel@...1240...ceforge.net
Envoyé le : Mardi 24 janvier 2012 16h20
Objet : Re: [Inkscape-devel] Re : Re : Re : Merging Export and Create bitmap

On 24-01-12 15:31, Ivan Louette wrote:
> Thanks ! I was not aware of that ! But then the Save Cairo png format
> should take account of the background color and this isn't the case.

True. Actually, I'm not sure why we have that format (I think I remember
that it came up before on the mailing list, but I forgot the reason for
its existence).

> On the other hand if you have for example a semi-transparent red
> background color you cannot export an opaque bitmap with a background
> color which matches the tint of the semi-transparent red. You must open
> your png image in Gimp and remove alpha channel there. My proposal
> remove this additional step.

My point is, if you want the SVG to have a semi-transparent red
background, why shouldn't the PNG? If you want an easy method to change
a semitransparent background to an opaque background with the same look
(assuming that the background is drawn over a white "backbackground"),
why not create a button/extension to do that, why link it to bitmap export?

> However that doesn't solve the question for "Make bitmap copy" which
> never take account of the background or the unselected objects in the area.
>
> There are no reasons to treat differently "Export bitmap" and "Make
> bitmap copy" (or the "Copy to clipboard I add to the possibilities in my
> mockup).

Indeed, and "not taking into account the background" is exactly that
behaviour. Basically "export to bitmap" gives you a bitmap version of
the entire drawing, while "make bitmap copy" gives you a bitmap version
of some object (which naturally does not contain a background).

I'm not saying that your proposal is a bad idea (in fact, I quite like
the idea of consolidating these different features), just trying to
understand why you wish to do something special with the alpha channel.

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Inkscape-devel mailing list
Inkscape-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-devel