poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Herve Girod <herve.gi...@gmail.com>
Subject Re: Some questions for the use of HSLF API
Date Mon, 18 Apr 2011 23:29:55 GMT

OK, I now only have one remaining question, as I was able to fill shapes
with images after some thought. I am not able to use  the alpha value, for
solid colors nor for pictures. The resulting fill is always solid, whatever
I try to do (for example, even if I try to use the escher properties to
force the transparency value).

Is it possible to use colors or textures with an alpha channel in POI, or do
colors or textures are always solid in the API?


2011/4/15 Hervé Girod <herve.girod@gmail.com>

> Thanks a lot!
> After some thoughts, I have a question about images. When I encounter a
> paint which is not a Color, the subsequent shapes are filled in a
> bufferedImage, then a Fill is created with the resulting stream, and added
> to the SlideShow. However, if I open the resulting PPT file, there is
> effectively a Picture, but this Picture is broken.
> However, If I create Pictures with the same kind of streams, and add them
> to the SlideShow, it's working OK.
> Is my way of doing legit? I don't want to create Picture Objects in this
> case, because I want to fill only the Shape with the paint data, not just
> the overall bounding rectangle.
> Herve
> Sent from my iPhone
> On 15 avr. 2011, at 19:53, Yegor Kozlov <yegor.kozlov@dinom.ru> wrote:
> >> - Is it possible to embed Fonts in a PowerPoint file by using the API?
> It's
> >> possible to do it by using an existing PowerPoint file master, but I
> would
> >> like to do it when I encounter a Font which does not exist in the
> >> FontCollection. For example is it possible to create a new PPFont "from
> >>
> >
> > HSLF does not support embedding of fonts, you can only reference external
> > fonts by name.
> >
> >
> >> scratch" using an existing TTF file, and add it to the collection?
> >> - Is it possible to group Shapes? I tried to use ShapeGroups, but the
> >> resulting PPT file still did not have groups of Shapes
> >>
> >
> > Yes, you can do that.
> >
> > There are many examples in the HSLF unit tests, for example,
> >
> https://svn.apache.org/repos/asf/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestShapes.java#
> > testShapeGroup()
> >
> >
> > Regards,
> > Yegor

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message