graphics

How do I remove color (colour) profile information from images using .NET?

Hi, I have a tool which manipulates images at runtime as part of my web app. This generally works fine, but with the release of Firefox 3.5 we're seeing some colour problems. I believe this is because Firefox 3.5 now supports embedded ICC colour profiles where no other browsers do. In order to achieve consistency of display, I'd like...

What would be a good way of creating graph on a website?

I got a bunch of data in a database. The goal is to present them to a user in a readable way, and since they're stock-data, there needs to be a graph there. Now it brings one question: which approach would be better, to create a graph on a server side dynamically or let the server just push raw data, allowing the client to generate grap...

Java Graphics library

I'm looking for a high-level java graphic library for creating artistic text, watermarks, resize, crop, image identification and manipulation. ImageMagic is a good example of such library, but its java ports are somewhat problematic (they either run imagemagic through JNI or via commandline and are hellish to deploy to servers). Ideally ...

label of log y-axis: 1000 instead of 1e+03?

I've a problem concerning construction of log y-axis in a graphic. How can I manage that the units/numbers of my log y-axis aren't shown in 1e+03, 1e+04, 1e+05 etc...., but only in regluar arabic numbers (1000, 10000, 100000)? Thanks. ...

Why the leading "#FF" in hexadecimal color values?

I'm using Expression Blend 3 and writing some of the XAML by hand, specifically the color values of controls. I have a list of RGB colors already converted to hexadecimal. I just need to insert the hex value into my XAML. Initially, I pasted the hex value from an email into the appropriate properties. Before I could finish, Blend start...

Is there any 2D renderer library with complete fixed point support for embedded linux?

Hi SO Friends, I am working on embedded linux, Is there any open source 2D renderer available which can draw on memory, scanline based, complete fixed-point support. I work in c or cpp programming language. I know one with which satisfy my all needs that is, Google Skia which google uses in android and chrome, But I found it without...

wpf 2d high performance graphics

Basically, I want GDI-type functionality in WPF, where I can write pixels to a bitmap and update and display that bitmap through WPF. Note, I need to be able to animate the bitmap on the fly by updating pixels in response to mouse movements. I've read that InteropBitmap is perfect for this, as you can write to pixels in memory and copy...

Mixed Scaled and ordinary coordinates in Mathematica?

Is it possible to specify a position in terms of Scaled coordinates in one direction and use the ordinary coordinates from my data points in the other direction on the plot? In other words, I want to specify a position, where the x coordinate is an ordinary coordinate and will change position in the plot if the plot range is changed, bu...

How to use mouse drag to move triangle

I draw a triangle using mouse drag. After drawing many different triangles, I wanted to move some of the triangles into different location using mouse drag, however I don't know how to drag the triangle to different location. Help please :=( ...

PCL and 1200 DPI

Hi.. Is it possible to send the PCL Set resolution command with 1200 dpi (and higher) as parameter? I've been looking at the spec sheets for HP PCL and it tells me that the only valid values for it are 75, 100, 150, 200, 300, 600. I am trying to print to a non-HP machine claiming to support HP PCL5 and it prints fine for 300 and 600 d...

Limiting File Size when Resizing with GDI+

I am resizing uploaded images as follows: var bmPhoto = new Bitmap(width, height, PixelFormat.Format16bppRgb555); using (var grPhoto = Graphics.FromImage(bmPhoto)) { grPhoto.SmoothingMode = SmoothingMode.HighSpeed; grPhoto.CompositingQuality = CompositingQuality.HighSpeed; grPhoto.InterpolationMode = InterpolationMode.Low; grPh...

Making A Graphic Pie Chart In C#

I'm trying to write a Windows Application that shows a pie chart with seven unequal slices (25%, 20%, 18%, 17%, 10%, 10%, 10%) all of them will be colored differently. So far I have made Pens and Brushes with colors attached and drawn a circle. This is what I have so far private void Form1_Paint(object sender, PaintEventArgs e) { ...

What to use when text comments just wont do?

Hi - I'm writing a graphics application that's maths and geometry intensive. Frequently, I find that although I comment my code as best as I can, after sometime of working on some other part of the app, the previous comments become are hard to understand when I revisit it (usually for debugging). I'm starting to think that there are cas...

Cursor position on Windows mobile

Hi there Is it possible to change the position of the cursor in a windows mobile app? I wanted the show Cursor.WaitCursor icon but not in the middle of the screen as default. I want to move it to a corner or something like that. Any idea? ...

Are there any libraries for loading and processing/disassembling Direct3D shader bytecode?

Are there any libraries for loading and processing/disassembling the Direct3D (10,11) shader bytecode files generated by fxc? I know that many developers (and hardware vendors) have internal tools to load and process the D3D shader bytecode formats, but since the shader bytecode format is private and binary-only as of D3D10, I wonder wh...

Question about JavaScript graphic animation: saving and restoring a "sprite" background

I am writing a train based game in Facebook Javascript. I have an inverted triangle that represents the train and dashed lines that represent track which connects cities in Europe. The train moves along the track to travel from one city to the next. At this time, I redraw the gameboard with every page refresh. This has the effect of alwa...

Transparent bitmap

HI.... I am having problem here with bitmaps..I want to remove the black background that my bitmap is having... I am creating bitmap bitmap from byte array..and then setting the bitmap in BitMapField..but the image shown has a black background.. any help in removing the background..!!! Thanx in advance... ...

How do I flip a polygon by flipping the array?

I have 2 arrays of ints I am using to create a polygon (that looks like a fish). What do I need to do to the arrays to flip the polygon horizontally? x = new int[] { 0, 18, 24, 30, 48, 60, 60, 54, 60, 48, 30, 24, 0 }; y = new int[] { 0, 18, 6, 0, 0, 12, 18, 24, 24, 36, 36, 30, 36 }; ...

How to draw a (bezier) path with a fill color using GDI+?

I am making a SVG renderer for Windows using the Windows API and GDI+. SVG allows setting the 'fill' and 'stroke' style attributes on a Path. I am having some difficulty with the implementation of the 'fill' attribute. The following path represents a spiral: <svg:path style="fill:yellow;stroke:blue;stroke-width:2" d="...

Silverlight graphics pixel side position?

I try to port simple game to silverlight (SameGame). The problem is that my old source code used pixel sizes to allight game marks to board. I draw simple grid using lines and game mark (using rectangle). How i can set rentacle position correctly? Example 20 20 pixels to upper left corner). private void DrawGrid() { ...