Drawing a filled rectangle with a border in android

Is there any way in Android to draw a filled rectangle with say a black border. My problem is that the canvas.draw() takes one paint object, and to my knowledge the paint object can’t have a different color for the fill and the stroke. Is there a way around this? Answer Try paint.setStyle(Paint.Style.FILL) and paint.setStyle(Paint.Style.STROKE). … Read more

SVG fill color transparency / alpha?

Is it possible to set a transparency or alpha level on SVG fill colours? I’ve tried adding two values to the fill tag (changing it from fill=”#044B94″ to fill=”#044B9466″), but this doesn’t work. Answer You use an addtional attribute; fill-opacity: This attribute takes a decimal number between 0.0 and 1.0, inclusive; where 0.0 is completely … Read more

Photoshop CS6: Pen/Custom Shape Fill & Stroke Color Options are Locked?

I’m new to Photoshop, and am teaching myself. In playing with the pen and custom shape tool I’ve noticed that the Fill and Stroke settings for “Shape” appear to be locked. I cannot click to change them and don’t get any kind of drop down like in other tools. I’ve tried making sure I’m on … Read more

Arabic Text stroke overlap (with zero fill)

How do I remove the stroke overlap between the individual Arabic characters when I use zero fill or even white fill? Answer There’s no need to outline your text. Set the stroke and fill using the Appearance panel (Window → Appearance) and drag the stroke to the bottom so that it is behind everything else. … Read more