M.-Leander Reimer wrote:
> But the byte array I would require must be
> bigger than 8x8 and would need to differ from image to image, so a
> statically defined byte array is unsuitable.
You are referring to the example in Chapter 5, but you probably
overlooked this paragraph on page 157: "In real life, you'll want
something that looks much better than figure 5.10, but this example
serves mainly to introduce the theory of hard and soft masks in images.
A hard mask has only one bit per component; 1 covers the image and
0 is transparent. A soft mask contains a gradient from 0 to 1.
We'll deal with this concept in more depth later on in chapter 11;
this is just a simple example that serves as an introduction."
> So the questions is: Can I make a hard mask directly from images loaded
> from a file, and if so, what formats are supported here?
Skip to chapter 11, section 11.3 "Clipping content" (p341-344).
http://itext.ugent.be/itext-in-action/
br,
Bruno
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/