Post Reply 

pointing text box with rounded corners like on Google Maps

Dec 14, 2010, 03:46
Post: #1
pointing text box with rounded corners like on Google Maps
Hi. I'm trying to make a shape that I don't know the name of, but it is similar in shape to the popup on Google Maps when you click on a restaurant (etc): sort of a rectangle with rounded corners and then one section juts out to a sharp point that points at the place on the map. It is similar to a speech balloon in comics, I suppose.

I have almost got it, but I wind up with bad aliasing/jaggy corners and jagginess at the "pointer" part of it. I'd like it to look as smooth as possible and yet also crisp.

I'd also like it to be gradient filled and be sitting on a transparent layer.

What is the smart way to go about this?

Thanks,
CM
Find all posts by this user
Quote this message in a reply
Dec 14, 2010, 09:14
Post: #2
RE: pointing text box with rounded corners like on Google Maps
Without knowing what you actually tried and what you consider too jaggy it's not too easy to make suggestions. Anti-aliasing always blurs edges a bit, at the pixel level.

Otherwise to obtain the shape, I would do:

- new layer (transparent background) big enough for balloon plus finger
- draw rectangular selection with "round corners" check
- bucket fill it (because you will want that visible later in the process)
- save selection to channel
- make the finger using polygonal path (two lines are enough), the open side should
be in the rectangle
- select/from path
- in Channels dialog, select the saved rectangle and add it to selection
- save selection again (you can drop the previously saved one)
- select all/erase (this removes the filled-in rectangle)

Now you have a transparent layer with a balloon-shaped selection, if you drag the gradient tool, it will only fill the balloon.

You can also autocrop the layer to reduce its size to the strict minimum (makes it easier to move/align).

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Dec 14, 2010, 21:32
Post: #3
RE: pointing text box with rounded corners like on Google Maps
(Dec 14, 2010 09:14)ofnuts Wrote:  Without knowing what you actually tried and what you consider too jaggy it's not too easy to make suggestions. Anti-aliasing always blurs edges a bit, at the pixel level.

Otherwise to obtain the shape, I would do:

- new layer (transparent background) big enough for balloon plus finger
- draw rectangular selection with "round corners" check
- bucket fill it (because you will want that visible later in the process)
- save selection to channel
- make the finger using polygonal path (two lines are enough), the open side should
be in the rectangle
- select/from path
- in Channels dialog, select the saved rectangle and add it to selection
- save selection again (you can drop the previously saved one)
- select all/erase (this removes the filled-in rectangle)

Now you have a transparent layer with a balloon-shaped selection, if you drag the gradient tool, it will only fill the balloon.

You can also autocrop the layer to reduce its size to the strict minimum (makes it easier to move/align).

This is extremely helpful, I have got something now that looks quite a bit better, plus I know more about GIMP than I did.

After these steps, I also stroked the selection (edge) with a one point dark gray line to give it a border, and although there is a rather small bit of jagginess around the corners, it is much better than what I had before. Thanks again!

Che
Che
Find all posts by this user
Quote this message in a reply
Dec 14, 2010, 22:14
Post: #4
RE: pointing text box with rounded corners like on Google Maps
If you stroke the selection, to remove some jaggedness try to reduce the spacing of the brush. Since the spacing on standard brushes is a bit high and cannot be changed, you can make you own by selecting a tiny circle with a 1-pix feathered selection and copying it to the clipboard. Another method is to transform your selection into a narrow border selection and bucket-fill it.

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Outline around Text. saga 4 3,707 Jun 5, 2017 07:34
Last Post: blighty
  Missing Dialog Box Buttons DandelionFancy 2 138 Sep 29, 2014 19:44
Last Post: DandelionFancy
  Diamond and gold text effect Treycee 7 3,133 Sep 5, 2014 21:56
Last Post: Akros
  Text move - after adding border goad 4 172 Sep 2, 2014 09:43
Last Post: ofnuts
  How to do this simple text effect ? Kaicy 3 210 Aug 25, 2014 21:20
Last Post: Kaicy

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS