rounded-corners

.NET GDI+: Drawing lines with rounded corners

≡放荡痞女 提交于 2019-12-20 02:41:49
问题 Given an array of points, it is easy to draw a line based on these, e.g. using the GraphicsPath class. For instance, the following array of points... [0]: (0,0) [1]: (100,0) [2]: (0,100) [3]: (100,100) ...describes a line that resembles a Z. But here comes the challenge; I need to draw rounded corners with a radius of e.g. 10 pixels. By corners I mean the points in the line that aren't start or end points. In this case there are two corners at (0,100) and (100,0) . I've played around with

Add rounded corners to custom view

限于喜欢 提交于 2019-12-20 01:08:54
问题 I'm quite new to Android and i'm trying to draw on a custom view (with canvas). I've got some lines & rects there. The point is, that i now want to give the whole view rounded corners, but that doesn't work well, as i'm drawing on the view and my drawings are above the rounded corners, which were added through the ressources. Is there a possibility to add rounded corners, that cover the whole view? Best regards and thank's for any help! 回答1: I am not sure of your requirements. But you can use

svg css rounded corner not working

时间秒杀一切 提交于 2019-12-19 05:04:26
问题 I have an SVG file that I am applying CSS to. Most rules seem to work, but when I apply rules about the rounding of corners (rx:5; ry:5) it has no effect. 'Inline' style rules work, but I'm having no luck with embedded and external style sheets: <svg ...> <defs> <style type="text/css" > <![CDATA[ rect{ rx:5; ry:5; } ]]> </style> </defs> <rect height="170" width="70" id="rect7" x="0" y="0" /> </svg> Any idea where I am going wrong? 回答1: rx and ry are regular attributes rather than presentation

svg css rounded corner not working

牧云@^-^@ 提交于 2019-12-19 05:04:21
问题 I have an SVG file that I am applying CSS to. Most rules seem to work, but when I apply rules about the rounding of corners (rx:5; ry:5) it has no effect. 'Inline' style rules work, but I'm having no luck with embedded and external style sheets: <svg ...> <defs> <style type="text/css" > <![CDATA[ rect{ rx:5; ry:5; } ]]> </style> </defs> <rect height="170" width="70" id="rect7" x="0" y="0" /> </svg> Any idea where I am going wrong? 回答1: rx and ry are regular attributes rather than presentation

Android: ListView, problem with rounded corners

ⅰ亾dé卋堺 提交于 2019-12-19 03:58:23
问题 I have ListView with rounded corners implemented like bellow. <ListView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/list_bg" android:divider="#dbdbdb" android:dividerHeight="1sp" android:cacheColorHint="#00000000" android:descendantFocusability="afterDescendants" android:scrollbars="vertical"> </ListView> where list_bg.xml is: <?xml version="1.0" encoding=

Can't create rounded corners Dialog (Android-Eclipse)

扶醉桌前 提交于 2019-12-18 18:39:50
问题 I'm trying to make a custom dialog shape for my app's dialogs. I've been searching for this topic for hours, but the solutions I find don't work for me, that's why I ask you for my own problem. I want a Dialog with rounded corners and showing a title and then a ScrollView with some text. The only thing that is not working to me is the rounded corners. Here I post you my code: my AndroidManifest.xml with the activity I want with my rounded-corners Dialog: <activity android:name="

d3.js custom curve step round

微笑、不失礼 提交于 2019-12-18 16:45:23
问题 I'm working on d3.js .v4 graph with x and y axis and I need your help. Description: xAxis is linear scaled with path on it like this image. I'm stuck here and can't find solution to make path like on this image path with rounded corner This is my code for line function // the path generator for the line chart line = d3.line() .x(function(d, i) { return xScale(i); }) .y(function(d, i) { return yScale(d); }) .curve(d3.curveStep); I tried with cardinal, monotone and catmull buth can't archive

What is the best way to create standards-based, cross-browser compatible rounded corners in Drupal?

吃可爱长大的小学妹 提交于 2019-12-18 13:26:26
问题 I am currently working on a Drupal 6 theme, for which designer is explicitly requesting to use A LOT of rounded corners. I could of course create the rounded corners - traditionally - with images. But I know there must be also better and easier ways of creating rounded corners. Optimally, I would like to write my CSS as standards-compliant CSS3, with selectors like: h2 {border-radius: 8px;} Use of browser-specific is CSS is very OK also, like h2 {-moz-border-radius: 8px; -webkit-border-radius

Cross browser rounded corners (no image)

亡梦爱人 提交于 2019-12-18 13:03:00
问题 When converting PSD's into HTML or even HTML5 and CSS, how much more difficult is it to round the corners and make those corners consistent across all browsers, especially Internet Explorer? Assuming the corners were rounded with code, not images. 回答1: You can check out Corner if you want a JavaScript solution. It's cross platform. 回答2: You already accepted but CSS3 PIE you can just use the border-radius property (along with gradients, shadows, and other fun CSS3 features) in IE3. I think it

Top-left and -right corner rounded in Javafx/CSS

我是研究僧i 提交于 2019-12-18 12:12:39
问题 I would like to create a Pane with 2 rounded corners top-left and top-right, how can i do this in javafx? I know that u can use "border-top-left-radius" in normal css but it wont work under javafx. Until now I tried: .calendar { -fx-border-top-left-radius: 10px; -fx-border-top-right-radius: 10px; } Thanks in advance, Zombie 回答1: .calendar{ -fx-border-radius: 10 10 0 0; -fx-background-radius: 10 10 0 0; /* top-left, top-right, bottom-right, and bottom-left corners, in that order. */ } 来源: