JTDraw Update | CodeGuru

JTDraw Update

Supports GDI+ drawing. It includes transparent filling, pattern filling, and using an image easily. For the UI, I developed my own color picker (very similar to the style of Office 2000), in which you can not only select the color, but also select the pattern, gradient, and picture you want to fill the shape. Supports […]

Written By
CodeGuru Staff
CodeGuru Staff
Jun 3, 2002
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

  1. Supports GDI+ drawing. It includes transparent
    filling, pattern filling, and using an image easily. For the UI, I developed
    my own color picker (very similar to the style of Office 2000), in which you
    can not only select the color, but also select the pattern, gradient, and
    picture you want to fill the shape.
  2. Supports multiple pages and zoom.
  3. Supports infinite step undo/redo. You can adjust the
    stacks to hold the undo/redo stack. In the example code, it is set to 20
    steps.
  4. Still uses the BCGControlbar library. My version is the 5.82 release. I think the evaluation version of BCGControlbar should work. You can dig into the code to delete all the BCGControlbar stuff if you really hate it, but I suggest you should have one copy of this library. It is pretty cool and cheap.

My project is aimed at visualizing metabolic pathways in a living cell, so I have other objects that are not included in this example because I don’t think many of you are interested in how to visualize a molecule or a reaction. The alignment of objects is not hard to implement, and my own code is related to network layout and may not have a general readership; hence, I leave the alignment function to readers.

GDI+ is part of new SDK release. It is free to download from the Microsoft Web site here.

Downloads

Download demo project – 300 Kb

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.