How do I put a caption under an image in a table? - image

I am using tables to create a grid of movie posters, the only problem is how do I put a caption under each image without affecting the images alignment or anything else? Let me know

Related

How to align Image to right in iText?

I am adding image to a table cell. I want to position the image to the right of the cell.
I've tried this:
PdfPCell imagecell= new PdfPCell();
imagecell.add element(myImage);
imagecell.setHorizontalAlignment(Element.ALIGN_RIGHT);
Actually, I have got a solution for the question so thought it might be helpful to share it here.
The image can be aligned to the right of the table cell by specifying the alignment property of the Image object as shown below:
myImage.setAlignment(Image.ALIGN_RIGHT);

Parsys on top of an image

There is requirement where parsys should be added on top of an image. It is like a background image with the provision of parsys so that other components can be dragged and dropped on top of it. I am using html5smartimage for image component. But, no clue yet on how I can get the parsys on top of the image. Please help if you find any ideas. Thanks.
is the image authorable? If so, how do you intend to provide click-area for the authors to change the image vs edit items in the parsys.
If the image isn't authorable, just target the CSS for your parsys and set the image.
If the image is authorable, in edit mode you want the image to be distinct from the parsys and have separate clickable areas. Then in preview/disabled modes you would generate the actually desired markup & CSS to position the parsys content over the background image.

Is it possible to set the backgroud of a QTableWidgetItem as no-repeat?

I am trying to put images into one of the column in my table (QTableWidget). However, so far I cannot find a way to make the image no-repeat.
I cannot set the width of the image to fit the cell, because the images are some barcode and will not be scanned after stretching.
I had tried to use setStyleSheet on QTableWidget, but has no effect on individual cells.
Is it even possible to do this?
Thank you.

fo image align caption

I would like to have image with caption printed below the image in XSL-FO. the caption should have right alignment.
I am using table for that. It prints images with captions but the problem is the alignemnt of the caption compared to the caption. If the alignment of the image is 'right' then all looks fine: caption is just below the image at the right side. but if the image is center or left then still at the far right of the page.
The problem is the table is full width of the page but the image is smaller. The problem can be solved if the width and the alignment of the table corresponds to the width and the alignment of the image.
will really appreciate help to resolve this issue.
regards,
rnv
You might want to ensure the table is not taking the entire width of the page, but just the width it needs. This way, the table will be as wide as the image, and your caption will be aligned to the right, neatly under the image.
However, now you want your image to be in the center of the page. The solution could be to put the table in another table and let this outer table take the entire width of the page. A fo:block might also do the trick.

Proper way to use images in NSMenuItem?

I've put some images next to NSMenuItems using the image option in Interface Builder. The custom image is a simple PNG. I was hoping the system would automatically alter the color of the image during mouse over like it does with stock images. It does not. What am i doing wrong?
Here's a pic of a stock image vs my custom one:
In code, call [menuItem.offStateImage setTemplate:YES]

Resources