I need a white box (I'm using a Panel because I'm so close, but it could be anything) with all four corners rounded, and the top portion of the box needs to have a gradient that starts out one color (let's say Grey) and ends up as the background color (white). The gradient does not go down the entire box.
The top two corners must remain...
Reading a paper, I'm having difficulty understanding the algorithm described:
Given a black and white digital image of a handwriting sample, cut out a single character to analyze. Since this can be any size, the algorithm needs to take this into account (if it will be easier, we can assume the size is 2^n x 2^m).
Now, the description s...
hey, I want to be able to have a gradient fill on the text in a UILabel I know about CGGradient but i dont know how i would use it on a UILabel's text
i found this on google but i cant manage to get it to work
http://silverity.livejournal.com/26436.html
...
I had an idea to programmatically generate matching color schemes however I need to be able to generate a linear gradient given a set of two colors (Hex or RGB values).
Can anyone provide me the (pseudo-)code or point me in the right direction to accomplish this task?
EDIT: I forgot to mention, but I also need to specify (or know) the ...
I know how to draw a simple line:
CGContextSetRGBStrokeColor(context, 1.0, 1.0, 1.0, 1.0);
CGContextMoveToPoint(context, x, y);
CGContextAddLineToPoint(context, x2, y2);
CGContextStrokePath(context);
And I know how to do a gradient rectangle, i.g.:
CGColorSpaceRef myColorspace=CGColorSpaceCreateDeviceRGB();
size_t num_locations = 2;
...
Hello I got goal to achieve, 3d cube manipulated with mouse with gradient filling on each wall.
I found some source codes coresponding to gradients and 3d rotating cube but here is the problem:
When i put these two things together the effect looks like the cube was a wireframe with transparency to some gradient background hidden behind...
Does anybody know how:
add small gradient to bottom of each UITableViewCell to visually highlight separation between cells
and at the same time make each second cell in table a bit darker then the each first row.
A great example of that stuff is Tweetie app. When you tap on your twitter account name you'll see table view with twitts....
I have an issue when attempting to set the background of a grid in a Silverlight 3 app to a gradient. When I set the background of a grid in my application to a gradient, that gradient simply does not render in the browser. I have set this gradient brush as a resouce (both in app.xaml as well as in the local XAML file) and I have also ...
I'm trying to draw a line with soft edges, regardless of the slope.
Here's the code I have so far:
<Line HorizontalAlignment="Stretch" VerticalAlignment="Center"
Stretch="Uniform" StrokeThickness="5" X1="0" Y1="0" X2="1" Y2="0">
<Shape.Stroke>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<...
I'm trying to figure out how to stop LinearGradientBrush to repeat along with shape I'm drawing. So, for example I created gradient with height equal to 50, but next I draw rectangle with height equal to 150. In that case gradient will repeat itself three times. But I'd like to draw only first gradient and draw nothing for the rest of re...
I have a TextBlock and a Line sitting next to each other in their own exclusive StackPanel.
I need to spread my LinearGradientBrush across the two objects, rather than shading them individually.
My project currently looks like this:
<StackPanel Orientation="Horizontal">
<TextBlock VerticalAlignment="Bottom">
SomeT...
Hey there, I was wondering in flash how to delete gradient markers. For example, when I am working on a gradient in the color window, and hover my mouse over a marker, a plus sign appears and if you click it, another marker surfaces. Now when I open up a new file and use the gradient tool, it saved all of the markers I created
How do I ...
Is there any good jQuery gradient plugin. I found one, but it uses old jQuery, when I use latest, so it probably won't work with latest version.
...
I am trying to apply a DirectX gradient filter transform to the selected row in an ASP.net page gridview. In the RowDataBound() event I am applying the approprate style (whihc I know works in other situation), and the added row attributes for 'onmouseover' and 'onmouseout' to enable and disable the filter array element(s) so when the mo...
I want to be able to have a dynamic Gradient in Silverlight, such as below:
<RadialGradientBrush GradientOrigin="0.20,0.5" Center="0.25,0.50"
RadiusX="0.75" RadiusY="0.5">
<GradientStop Color="{Binding Path=GradientStart}" Offset="0" />
<GradientStop Color="{Binding Path=GradientEnd}" Offset="1" />
</RadialGrad...
Hi,
I'm trying to display a gradient using CAGradientLayers.
I just set two colors and i expect to see a gradient between them, unfortunately only the first plain color is displayed without any gradient.
Here is my code :
- (void)viewDidLoad {
[super viewDidLoad];
CAGradientLayer *gradientLayer = [CAGradientLayer layer];
gradientLay...
Hi all,
How would I write a code that would set the gradient level to 50%? It's pretty straight forward, but I'm not using an NSSlider so it just needs to be dropped down to 50% or anywhere around there.
Thanks
Kevin
...
I want to apply a blur filter to an image in Flash CS4. I understand how to apply the filer but is there a way to apply it in differing amounts to different parts of the image? I.E. I want to have the edges very blurry while I want the center to stay relatively sharp (apply the blur filter as if it were a gradient coming from the cent...
Hi, I want to use sIFR 3 to add a simple linear gradient filter to a text, I can't find this in the ducumentation hope you guys can give me some help.
I found an article that show's how to do this but requiers the modification of the flash file and that's not what I want to do.
I looked in the sIFR documentaion and I didn't found a Gr...
Hello
I am trying to set gradient for a text in flash. But it never works. It only shows solid color.
How it can be done ?
regards
balkar
...