TeeChart does not accept UnNamed or Unknown colors - c#-4.0

When I apply color on TeeChart other than a named or known color it is shown as transparent. This applies to axis, series, labels, and gridlines.
CyChartControl.Header.Font.Color = Color.FromArgb(((System.Byte)(A)),((System.Byte)(R)),((System.Byte) (G)), ((System.Byte)(B)));
Does anyone know why this happens?

This works fine for me here:
tChart1.Header.Font.Color = Color.FromArgb(200, 200, 50, 150);
What TeeChart .NET version are you using?
It would be helpful if you could send us a simple example project we can run as-is to reproduce the problem here.
You can send your files to "info at steema dot com"

Related

How does Revit Analysis Display "Show Contour" work?

I am not sure if "ShowContourLines" property of
AnalysisDisplayColoredSurfaceSettings class in Revit works as expected.
I am expecting contours similar to isolines to be displayed but instead the outline
of the surface is highlighted.
Has any one got similar experience or know more about this feature?
I have not used the ShowContourLines property, but here are some other samples using AnalysisDisplayColoredSurfaceSettings that may be of use:
Display Webcam Image on Building Element Face
AVF Displays Intersections and Highlights Rooms
Apollonian Sphere Packing via Web Service and AVF
Intersect Solid Filter, AVF vs DirectShape Debugging

display.newText wont draw to screen in Lua

Looking through a few questions and answers i still am unable to find out what is wrong...
local myTextObject = display.newText( "Hello World!", 160, 240, "Arial", 60 )
This line of code - directly from the Corona Docs Guide is not displaying any text within my simulator. trying to figure out the problem i created a blank project and copy pasted this code and still nothing happens despite it being the only thing within the file.
Checking through iv used differnt fonts, used differnt methods of handling the string and still nothing will appear within the Corona Simulator - Even updating the SDK still doesnt solve this issue.
What am i doing wrong :S
thanks
local myText = display.newText( "Hello World!", 100, 200, native.systemFont, 16 )
myText:setFillColor( 1, 0, 0 )
Paste this code in the main.lua. Try this out it must work for sure.
Have you tried changing the font color?
text:setFillColor (200/255,0/255,2/255)
You said that you create a blank project so, Im expecting it as a black background, and creating text without changing the font color will make it look that it doesn't show any text

Set legend text's HorizontalAlignment to left in octave

I have legend text that in matlab behaves as
set(gcf,'DefaulttextHorizontalAlignment','left');
now I am attempting to replicate this in octave, but for some reason octave seems to ignore the above command.
I am using cygwin Xwin octave and GNUPlot.
(I am not trying to move the text to the other-side of the "line" legend('left'))
Doing some tests, it turns out that I can set the property, but it isn't affecting anything.
LegendHandle = legend( phvec, legendvec, 'Location', 'NorthEastOutside' );
legtxt=findobj(LegendHandle,'type','text');
get(legtxt(1),'HorizontalAlignment') %% returns left
It seems Gnuplot supports the option to change the legend horizontal alignment, but Octave doesn't provide the access to this function in Gnuplot (although it works with FLTK). You simply can't do anything about it, except filing a feature request on the Octave tracker.
Source: http://octave.1599824.n4.nabble.com/set-horizontalalignment-for-legend-text-td2218246.html
So yes, there's currently no solution to left align the legend text using gnuplot, the only thing you can do to remove this awful blank space is, as you said, to use legend('left') to swap the text to the left of the symbols.
I can replicate your problem but only if using gnuplot. It works with other graphics toolkits.
While gnuplot was Octave's default graphics toolkit for a long time, the Octave developers have been slowly replacing it with their own alternative in order to avoid its limitations. I believe recent versions of Octave will already default to fltk but you can change it yourself:
octave-cli-3.8.1> graphics_toolkit fltk
octave-cli-3.8.1> graphics_toolkit # confirm
ans = fltk
octave-cli-3.8.1> x = 0:0.1:10;
octave-cli-3.8.1> figure;
octave-cli-3.8.1> plot (x, [sin(x); cos(x)]);
octave-cli-3.8.1> legend ("long sin", "cos", "Location", "NorthEastOutside");

Custom FeedCount. Acording to which rule FeedBurner converts colors?

I am traying to prepare own dynamicly generated FeedCount for my own subscription service. I think this will be a good idea to support convention for setting colors via URL which is well known from FeedBurner,
http://feeds.feedburner.com/~fc/Ekundelekpl?bg=99CCFF&fg=000000&anim=0
this URLs produce such image.
fg is means a text color, bg means here a dark blue color. However light blue (ccffff) is here generated according to some rule.
Is this a some kind popular convert color convention, which is well known in webdeveloper/designers world?
I checked few other pairs of color, but I count figure out what the rule is. I don't want to hardcode all colors supported by FeedBurner.
[EDIT]
There is 216 available colors. Here is twelve pairs which I have extracted:
000000,7e7e7e
000033,8a8a8a
000066,909090
000099,9999CC
0000CC,9999FF
0000FF,9999FF
006600,909090
006633,99CC99
006666,A2A2A2
006699,99CCCC
0066CC,99CCFF
0066FF,99CCFF
I did it in another way.
I decided to use feedburner as template. I download proper image and override parts which interest me.
https://github.com/noisy/eGazeciarzFeedCount

Edit image, using openGL

I have been doing some searching the last couple of days and I have been curious how to do this. I have a UIImagePickerController.
So I want to add a effect like black and white, sepia, etc. I am creating a custom UIImagePickerVController and I am curious. Can this be done with OpenGL ES? If so, how?
This is possible through the use of pixel shaders using OpenGL-ES 2.0. You could also write an Objective-c++ routine that gets all the pixels of your image into an array then applies a custom algorithm to modify the color of the image.
Edit:
Here are some links that might help get you started.
http://www.sunsetlakesoftware.com/2010/10/22/gpu-accelerated-video-processing-mac-and-ios
http://www.dreamincode.net/forums/topic/76816-image-processing-tutorial/
http://www.efg2.com/Lab/Library/ImageProcessing/Algorithms.htm

Resources