Curved Box from one side in Word - ms-word

I am trying to make a template for my company's profile. I want to make rectangle curved from one side. As shown in the figure below. The blue box is a rectangle and the curved line is a curve in word. How can I ignore/delete the highlighted area in MSWord?

You can try using an image instead of the built in shapes. Insert the image, set the height to the full height of the page and set the text-wrapping so it is behind the text. Here's a sample image to try.

Instead of a curved line, use a filled oval shape in front of the rectangle. You might need to use the numeric fields in the Format tab to get the size you need. Also, if you put these elements in the header, they won't get in your way when editing your docs.

Related

Custom Shaped Buttons Unity UI

Hi I am trying to create custom buttons on unity (trapeziums). I successfully created the visible area on Photoshop and imported it as Sprite 2D UI as per the following image:
The issue arises, when I'm trying to select one of the buttons in game, their border overlap each other, since the transparent area is still being considered as part of the clickable button area. How can I remove this?
EDIT:
Practically when I import I want the squared boxes to not be counted with the image. I need the edges of the orange area to be cut flush with that and not the entire area(i.e. including the transparent boxes).
You may achieve this by using Alpha Hit Test Minimum Threshold. Take a look at this nice video tutorial.
There is one extra step that is not shown in the video but mentioned in the comments: you have to change "Mesh Type" to "Full Rect" and not "Tight" as it is.
Hope that helps.
The clickable area is based on the Rect Transform component of the GameObject. Adjust the width and height to the clickable area you want. You may have to crop your image in photoshop accordingly. If you select 'Gizmos' in the editor you can toggle viewing the click region.

Rounded Image on Crystal Reports

Guys, I want to crop my image following the red circle shape, removing what is outside the circle. I wasn't able to achieve this using my Crystal Reports XI Release 2. Any ideas on how to solve this problem?
One option is to superimpose (cover) the parts you don't want to see with white images. I don't think Crystal supports transparent images, so you might need a top and bottom white images.
Another option is to execute an image crop on the fly via a UFL. At least one of the UFLs listed here already supports rectangular image crop on the fly. It is possible to implement the same with a circular image crop.

Color Document Sections in iText Sharp

Help, I need to create a PDF with iTextSharp that has
1) A green background for the entire document
2) Text (headings, tables, paragraphs) appear on a white background.
3) Special sections appear with a pink (or other color)
4) Headings on a Blue Background with White Text.
I can build a simple document, but the background colors are really throwing me off.
I add content using paragraphs, but I'm not sure how to set the background color of the paragraph, or group them together.
You create the document using objects such as Paragraphs, PdfPTables, and so on. You draw the rectangles using PdfContentByte methods. You obtain a PdfContentByte instance from a PdfWriter like this:
writer.getDirectContentUnder(); // Java
or
writer.DirectContentUnder; // C#
By using getDirectContentUnder() instead of getDirectContent(), the rectangles are drawn under the Paragraphs, PdfPTables, and so on.
Your main problem is keeping track of the coordinates: you need to know the coordinate of the lower-left corner and of the upper-right corner.
Drawing the background for a full page is a no-brainer. I've answered this question yesterday: How to draw border for whole pdf pages using iText library 5.5.2
Granted, in that answer I defined a border color for the rectangle because the OP only needed a red border on each page. You need to define the fill color of the rectangle instead of the border.
By examining the answer to yesterday's question, you'll discover the concept of page events. You'll also discover other page event methods, such as onParagraph() and onParagraphEnd(). These methods receive the Y coordinate of the start of each paragraph and the end of each paragraph. You can use these coordinates to draw rectangles in the page event.
To solve your problem, you would add a BaseColor member variable, a variable that keeps track of the initial Y value, and so on. It will require some programming, but with all the mechanisms explained in my answer, you should be able to meet your requirement.
Here's how I got it done:
Set the background color in the document
Created 1 column full page width table and set the white background
for each cell.
Add all my content to a cell
Add a new cell for each section
Draw a green border between cells, the same color as the background.
Placing content in the cells solves the problem of keeping track of the coordinates. Since the content could contain multiple paragraphs, sub-tables etc. I'm not sure if the onParagraphEnd would always fire.
Putting the content in the cells also allows control over color.

php gd library to reveal background image

I have two identical sized images that I would like to work with. One image is in color, the other is in black and white. I need assistance on stacking the color image directly over the black and white image. After that, I would like to be able to remove sections of the top photo to reveal the image underneath.
Can someone point me in the right direction on how to accomplish this?
Here is something that may help:
http://forums.devshed.com/php-development-5/how-do-i-merge-various-images-into-one-using-gd-502604.html
Especially the part that talks about adding watermarking.
You will have to add transparent areas to the top image before combining them.
lee

How to align an 90 deg rotated label perfectly with the pixels?

When rotating a label, the text is rendered very ugly. Is there an convenient way to get the label aligned with the pixels? Maybe there is some way of rounding the transform of the view, so that it isn't misaligned?
If you use CGAffineTransformRotate or a similar function you won't see any artifacts in the text because the label is drawn first and then rotated in its entirety.
If you are seeing artifacts using a transform, then the most likely source is a transparent label background distorting the appearance of the text. If the background is variable, such as pin stripe or a picture, then rotating the text will put different pixels adjacent to the text which can muddle its outline and apparent color.