Questions tagged [thickness]

Describes the thickness of a frame around a rectangle. Four Double values describe the Left, Top, Right, and Bottom sides of the rectangle, respectively.

Thickness values can be specified in two ways. When it is passed four Double values to the structure, they represent the Left, Top, Right and Bottom sides, respectively, of the bounding rectangle. Alternatively, it can also supply a single value, which applies a uniform value to all four sides of the bounding rectangle.

72 questions
108
votes
3 answers

Control point border thickness in ggplot

When using ggplot, I can set shape to 21-25 to get shapes that have independent setting for the internal (fill) and border (col) colors, like so: df <- data.frame(id=runif(12), x=1:12, y=runif(12)) ggplot(df, aes(x=x, y=y)) + …
Noam Ross
  • 5,969
  • 5
  • 24
  • 40
10
votes
2 answers

WPF Border Thickness increase direction

Hey. Another WPF question. In my XAML code I have a border: and somewhere in code I increase the…
morsanu
  • 975
  • 20
  • 35
10
votes
2 answers

How to TemplateBind to BorderThickness.Top (or Bottom or Left or Right)?

I wonder if it is possible to bind a structure element like BorderThickness.Top to TemplatedParent's corresponding property. I have tried
mg007
  • 2,888
  • 24
  • 29
8
votes
2 answers

Animate Margin / Thickness

I just thought I already know how WPF and XAML Syntax works.... wrooong. I got the message: 'WithEvents' variables can only be typed as classes, interfaces or type parameters with class constraints. Please, do you know why this syntax is wrong? I…
Nasenbaer
  • 4,810
  • 11
  • 53
  • 86
6
votes
1 answer

How to make the BorderThickness receive its value from a WPF resource key?

I try to create String, Int32 resource as below but it doesn't work. I got the error saying that the value can't be converted. If you know how to do this please help.
Nam G VU
  • 33,193
  • 69
  • 233
  • 372
6
votes
3 answers

set panel border thickness in c# winform

I have searching and the result cannot solve my case. Actually I have a panel and I want the panel have thicker border than Windows given. I need BorderStyle BorderStyle.FixedSingle thicker.. Thanks before
rifleon
  • 105
  • 1
  • 1
  • 10
5
votes
3 answers

can the CImg library draw thick lines

I have been using the CImg library, and have been pleased with how easy it is to integrate and use. However, I now want to draw thick lines (i.e., more than one pixel thick). It is not clear from the API documentation of the draw_line function…
M Katz
  • 5,098
  • 3
  • 44
  • 66
5
votes
1 answer

Fat band using matplotlib in python

I would like to plot a line with varying thickness using matplotlib in python. To be clearer, I have the following variable import matplotlib.pyplot as P import numpy as N x_value = N.arange(0,10,1) y_value = N.random.rand(10) bandwidth =…
sponce
  • 1,279
  • 2
  • 11
  • 17
5
votes
3 answers

Bresenham line algorithm (thickness)

I was wondering if anyone knew of any algorithm to draw a line with specific thickness, based on Bresenham's line algorithm or any similar. On a second thought, I've been wondering about for each setPixel(x,y) I'd just draw a circle,…
Jon Trausti Arason
4
votes
1 answer

Can I change the thickness of the border of a window with MFC?

Normally, the thickness of a window is 4 pixels, which can be retrieved by GetSystemMetrics method. Can I change its value, for example 2 pixels? Thank you very much!
user26404
  • 1,371
  • 4
  • 27
  • 38
4
votes
1 answer

How to change the thickness & colour of the
tag?

I can see this has been answered but i've tried all of the solutions yet still have a barely visable HR. What am I doing wrong? hr { background-color: dimgrey; color: dimgrey; border: solid 2px dimgrey; height: 5px; width:…
Jamie Bohanna
  • 530
  • 1
  • 8
  • 26
4
votes
1 answer

How to calculate radius of ring in MATLAB?

I have a stack of cortical bone images, high resolution and binarized. How do I go about calculating the mean inner and outer radii for each image? Here is an example of the kind of images I need to process:
my MDB
  • 129
  • 1
  • 2
  • 10
4
votes
1 answer

Opengl Es Line thickness

I am drawing a line on android in opengl es. The line draws fine. The only problem is that the line remains the same thickness no matter how close or far the camera is from it. Are there any solutions to this?
NJGUY
  • 2,045
  • 3
  • 23
  • 43
4
votes
1 answer

Drawing a large weighted network in networkx based on thickness?

How do I draw a weighted network of N>1000 nodes in networkx by thickness? If I have a .csv list of source, target nodes and the weight for each edge, and I am thinking of using the method: for i in range(N) G.add_edge(source[i],target[i],…
user3298574
  • 41
  • 1
  • 2
3
votes
0 answers

How to find the distance to boundaries using an existing and refined medial axis?

Problem: I have ring-like binary images with varying thicknesses. I want to calculate its thickness at n places of that ring-like segment. My approach: Find the medial axis and distance transform. The distance transform maximizes at the medial axis,…
Savindi
  • 123
  • 1
  • 8
1
2 3 4 5