shape

How to recreate 6 hexagon shape background in css? [closed]

為{幸葍}努か 提交于 2019-12-13 08:37:47
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I am trying to recreate the following background in CSS: Each hexagon should have navigation link inside (6 sections) and this background with nav links should follow the user through all sections in one-page (displaying on the right side of browser). Currently, I am using it as a

how to insert div directly in tag href area shape

久未见 提交于 2019-12-13 08:36:30
问题 I wish to know if it is possible to insert following divs <div id="cal1"> [dopbsp id="1" lang=it]</div> <div id="cal2"> [dopbsp id="1" lang=it]</div> <div id="cal3"> [dopbsp id="1" lang=it]</div> directly in the tag href image map linked by different shape areas as following <area shape="circle" coords="160,59,20" href="#"> <area shape="circle" coords="111,58,20" href="#"> <area shape="circle" coords="60,59,20" href="#"> so that when I click on shape area, for example <area shape="circle"

How to change imageview background color in a preference in android?

蓝咒 提交于 2019-12-13 06:29:09
问题 I tried to solve my problem so i changed so much code. I change even title of the post. I can change the color of imageview background in preferences ui successfully. But after leaving fragment and launch again, the ui can not be updated in the same way as before. First of all, I use sherlockactionbar . There are 3 tabs . when 3rd bar is pressed, a fragment is , including buttons, is loaded. When one of button is pressed, another preference fragment is loaded. The code below shows how to call

How can I extract the outline of text and export it to SVG?

耗尽温柔 提交于 2019-12-13 05:00:35
问题 Is there anyway to get the outline (Vector Object) of the text of a TextField using as3 code? Or to draw the paths of the TextField characters as a graphic? I want to store them in an SVG file. 回答1: It doesn't look like there is an easy built-in way to do this. But as the famous saying goes: " we choose to extract a font outline in flash and do the other things, not because they're easy... ", you know, just to put this into a bit of perspective of how big a pain in the but this is going to be

created L-shaped background

大憨熊 提交于 2019-12-13 03:55:22
问题 I am trying to create an L-shaped background: a background with an underline and a left line. For further reference, it is similar to one of android's design for EditText. I need to place such a background for an AutocompleteTextview. In any case, here is my code <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item> <shape android:shape="rectangle" > <solid android:color="@color/transparent" > </solid> </shape> </item> <item>

Draw custom ellipse in winform

♀尐吖头ヾ 提交于 2019-12-13 02:56:50
问题 In System.Drawing and System.Drawing.Drawing2D , I can only draw horizontal or vertical shape. Now i want to draw custom shape. Given the coordinate of points A, B, C, D. I want to draw an ellipse like the blue one in the picture. 回答1: The example below is taken from MSDN: private void RotateTransformAngle(PaintEventArgs e) { // Set world transform of graphics object to translate. e.Graphics.TranslateTransform(100.0F, 0.0F); // Then to rotate, prepending rotation matrix. e.Graphics

WPF custom shape control

删除回忆录丶 提交于 2019-12-13 01:54:23
问题 I was wondering if it is possible to make a custom shape custom control. I need to make control which contains textbox, however the control must have a shape of triangle or sth more sophisticated than regular rectangle/square. 回答1: Short answer is yes. Long answer is reading up on WPF Control Styles: <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="WpfApplication1.MainWindow" x:Name="Window" Title=

PowerPoint 2007/2010 VBA code to change Type of Gradient Fill on a Shape object

我与影子孤独终老i 提交于 2019-12-13 01:35:02
问题 With PowerPoint 2007 & 2010, I have been trying to change the Type of Gradient Fill on a Shape object from default "Rectangular" to "Path" for days. Searched online but seems like no such question asked. So far I can only get the Gradient Fill to be "Rectangle" (the default with 2 color gradient?). But I want it to be "Path". So far only able to do that by right click on the actual Shape --> Format Shape. "Format Shape" form shows and I can change the "Type:" from Rectangle to Path. But I

How to draw a section of a circle using System.Windows.Shapes.Path?

那年仲夏 提交于 2019-12-12 15:04:11
问题 I have a Silverlight application where I draw lines on a picture by instantiating an instance of System.Windows.Shapes.Line and then adding it to MainCanvas.Children. I would like to similarly add some circle segments. If I understand correctly, I will want to use the Path class. I have the following requirement. I have (x,y) coordinates for the center of the circle. I have the radius r. I need to draw an arc that is a subset of the circle with center (x,y) and radius r. I have two angles a1

Android Gradient drawable color change

☆樱花仙子☆ 提交于 2019-12-12 13:05:10
问题 I have a shape drawable in the drawable folder. Here is XML structure: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <gradient android:startColor="#4D0418" android:centerColor="#5F031D" android:endColor="#7D0227" android:angle="-90" /> </shape> Now I want to change the startColor, centerColor, endColor from the java code in the runtime. How it is possible to change? 回答1: Unfortunately there's no API to do