painting

Drawing Tools for drawing array/linked list images

I'm thinking of writing few blogs on arrays and linked list and for that I need some good drawing tool for drawing images to explain the concept and the logic. I don't want to copy/paste images from other source so if anyone among you knows about any such tool in which I can create images fast and similar to ones given in books and on ot...

How to create a simple glass effect

I am currently painting a light blue, partly transparent overlay over owner-drawn objects to indicate certain state. It's OK but I thought that it would be even nicer if I could at some sort of glass effect to further establish the idea that the particular object has "something" overlaid over the top of it. I thought that some glass str...

Form is shown before controls finish being painted

Various controls (mostly labels and panels) on my fairly simple c# WinForm form are not painted when the form is shown. They finish being painted about a half second after the form is shown. Is there an easy fix to this? More details: The panel that paint the slowest displays some data read from an SQL database. The data is painted,...

Fastest way to fill pixels between two points with an ellipse-shaped brush?

Say I'm creating a raster-based paint program. My brush is ellipse-shaped. The user clicks and then drags the mouse to paint an area. I now have two points: pointA (where they clicked) and pointB (the first point returned from the mouse-drag). I want to fill in all pixels that fall within the brush region. What's the best way to do ...

Custom painting of JPanel

Hi, I'm not very good at this and I hope to get some help from people who understands the issue a lot more that I do. So here's the deal. In my application there is background JPanel with Image drawn over it. Then there is a small JPanel which I'm trying to create custom painting for. I wanted to have JPanel with rounded corners and s...

WS_EX_COMPOSITED causing an infinite WM_PAINT

I have a TPanel with WS_EX_COMPOSITED window style and a lot of controls with WS_EX_TRANSAPARENT style. Some of those controls uses GDI and some GDI+. It seems ok for those controls using GDI but I can't see the controls drawn by GDI+. I also noticed that setting WS_EX_COMPOSITED seems to sends an infinite WM_Paint that is why the GDI+ ...