drawing

C# Drawing oriented graph

Hello, is there a way to draw an oriented graph / tree in c#, without using external libraries? ...

Algorithm for drawing an anti-aliased circle?

What's a good algorithm for drawing anti-aliased circles? (Filled and not filled.) ...

Looking for a DB Schema Drawing tool on Mac OS X

I am looking for an easy-to-use db schema drawing tool for Mac. No reverse-engineering nor db schema generation needed, just a simple drawing tool with pre-designed db-related graphical components (boxes, relations-arrows, PK/FK symbols ...) Do you know any (non-commercial) good tool ? ...

How does one reproduce the inset text style when drawing text with Mac OS X Cocoa?

I'm talking about the groove style of the text on focussed title bars, or safari's bookmarks bar for example. Is there an easy way to reproduce this style when using: [string drawAtPoint:... withAttributes:...]; ...

Problems re-drawing an image on a double-buffered control without flickering

Hello, I know that double-buffering is an often-talked subject but no matter how much I searched and tried different approaches, I still can't get the control to re-draw itself without a flicker. Here's my code: using System; using System.Drawing; using System.Windows.Forms; namespace Emgu.UI { public class DoubleBufferedPictureBo...

How to render pdfs using C#

I want to load and draw pdf files graphically using C#. I don't need to edit them or anything, just render them at a given zoom level. The pdf libraries I have found seem to be focussed on generation. How do I do this? Thanks. ...

Is there a cartoon guide to OOP?

I'm looking for some visuals for a presentation to illustrate the principles of oop in a simple-to-grasp way. I want to avoid saying stuff like "an object is a software bundle of related state and behavior". Has anyone seen a non-jargon-y illustrated guide to OOP? ...

How to draw a line between draggable and droppable?

Hi guys, I'm using the exelent JQuery UI to do a "mapping" so the user can "map" persons from one program to persons from other program. using this simple JQuery: $(document).ready(function() { $("div .draggable").draggable({ revert: 'valid', snap: false }); $("div .droppable").droppable({ hoverCla...

Application for sketching ideas on a computer

I've always wanted to sketch all ideas I come up with in the computer instead of on paper, but everyone knows that sketching with good 'ol fashioned pen and paper beats the crap out of trying to do it with a mouse (or even worse, a touch pad). So I turn to stack overflow with this question: Does any one of you know a magic program that ...

How can I modify a bitmap and use it later without storing or drawing

Hi, I'm trying to do some ocr by myself in C#. I originally come from Java and this is my first "project" with C# So I know, how you can make different ColorMatrizes to draw a processed bitmap in your application. I also do have those, but I want to use the processed picture to better analyze a picture. Those are my methods to get a Im...

.Net equivalent for ScaleHeight and Scalewidth

Basically what I am trying to do is make my drawing job easier. Back in the days of VB6 there was something called Scalewidth and Scaleheight and I could set them to custom values. Ex. 100. Then when I needed to draw a point at the center of the available space i would just draw it at 50,50. Is there any way in .Net that I can get si...

How do you specify the specific Group 3 tiff compression?

Group 3 compress has 2 variations (Group 3 1D and Group 3 2D). When saving an image in Tiff format, there is only one option for Group 3 in the EncoderValue enumeration. Is there a separate parameter that controls this? ...

My Quartz drawing on iPHone is clipped after rotation!

I'm drawing three rectangles, one of which falls off the end of the view, (i.e. the drawing is bigger than the current view bounds) so you don't see the right edge. This is good, but when the view is rotated, the right edge is still clipped, even though there's plenty of room to draw it. How can I get the view to redraw the full rectan...

how to create an illustration for c++ structures placement in-memory?

I want to create a few illustrations for one of my c++ related articles. This illustration must show how different structures are placed in memory ( variables, vtable, pointers etc ). I want illustrations to look something like this, like this or like this. Of course i can draw such illustrations by hand using gimp/photoshop or writer/ms...

WPF 3D Model Drawing Tools

Are there any applications out there for 3D modeling that would output the finished product to an array of points (X,Y,Z) that you could then import to a WPF 3D Model? ie: <MeshGeometry3D Positions="0,0,0 10,0,0 0,10,0 10,10,0 0,0,10 10,0,10 0,10,10 10,10,10" TriangleIndices="0,2,1 1,2,3 0,4,2 2,4,6 0,1,4 1,5,4 1,7,5 1,3,7 4,5,6 7,6,5 ...

Drawing Application Zoom Concept

I'm building an application on top of canvas, it consists of a simple DOM that gets redrawn on every mouse move (yes, it is necessary), for performance issues not every part part gets redrawn only what is needed. The app is working well but I'd like to add the zoom feature, the way I see it, it can be done in three different ways: 1 - ...

How do you translate this code from Processing to C++ ?

Hi, I wrote this code in Processing (www.processing.org) and was wondering how would one implement it using C++? int i = 0; void setup() { size(1000,1000); } void draw() { // frameRate(120); PImage slice = get(); set(0,20,slice); if( i % 2 == 0 ) fill(128); else fill(0); i++; rect(0,0,width,20); } As you can see this...

Reading monochrome bitmap pixel colors

I don't know a better title, but I'll describe the problem. A piece of hardware we use has the ability to display images. It can display a black and white image with a resolution of 64 x 256. The problem is the format of the image we have to send to the device. It is not a standard bitmap format, but instead it is simply an array of by...

How would you draw cell borders in a wxPython FlexGridSizer?

I'm new to Python, but I can't really find much decent documentation on the web, so I'm hoping somebody will know the answer or where the answer is... I have a wxPython FlexGridSizer bound to a panel that contains other FlexGridSizers, I'd like to display some cell borders on the main FlexGridSizer, so each section looks encapsulated bu...

Can I suspend redrawing of a form until I have performed all updates?

Using C# and .Net 2.0, I'm using an irregularly shaped form (TransparencyKey, FormBorderStyle = None, etc...) and want to allow "normal" bordered mode. I change the back colour to default from Lime I change FormBorderStyle to FixedSingle I change the TransparencyKey to Colour.None Unfortuanately this looks a complete mess on screen wi...