Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Finding the container background color for a dynamically created chartFinding the container background color for a dynamically created chart
Previous
 
Next
New Post
7/9/2006 4:11 AM
 
    Hi

I am dynamically creating a chart (see this link) and I need to set the background color of the gif to match the module container's background,  What code do I need to access this coloR?

That is in the code...

'Building a BitMap that will act as the pallet and container

    Dim objBitMap As New Bitmap(400, 200)

'Declaring a Graphics objects for painting graphics on this newly created bitmap.

    Dim objGraphics As Graphics

    objGraphics = Graphics.FromImage(objBitMap)

'Setting the background color to silver

    objGraphics.Clear(Color.Silver)


... how can I set the background color to the module container's background?


All suggestions much appreciated

Thanks

Geoffrey

PS I would like to do the same thing in SVG but I will make that a separate thread.

Geoffrey Morton-Haworth www.yalaworld.net
 
New Post
7/9/2006 4:23 AM
 
Dear Geoffrey MH

Perhaps your question goes further then asking what is the color (or how can I set the color) of the background of the container?
When a container have a good design (not the special ones) but the containers who have the possibility to print only the content of the container, then the container background is not set or it is transparent.
When you print a container and the container has a background then you've a file that is larger than necessary.
Conclusion: A good container has a background-color:transparent;

Vriendelijke groeten
Gilbert Vanden Borre
 
New Post
7/9/2006 12:33 PM
 
    Hi Gilbert

Thank you for the post.

When I use objGraphics.Clear(Color.Transparent) the background for the bitmap is black and it prints black. I could always use white bit then the pie chart will sit in a white square on the standard dnn containers.

I look forward to other people's suggetions.

regards

geoffrey

Geoffrey Morton-Haworth www.yalaworld.net
 
New Post
9/2/2006 4:25 PM
 
    hi

I am still hoping for some help on this one.  Maybe it will hep if I restate the problem...

I have a dynamically created pie chart which appears surrounded by a white square on the standard dnn container against the light blue of the container.  I want to know how I can find that backcolour - light blue - programmatically so whatever the container I can set the bitmap backcolor to that so all that will be seen is the circle of the pie, not a white square.

Color Transparent or MakeTransparent just gives me a black square.  I have googled and googled but not found an answer other than picking up the color of the container or the page - but where can I find that in dnn?

yours hopefully

Geoffrey

Geoffrey Morton-Haworth www.yalaworld.net
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Finding the container background color for a dynamically created chartFinding the container background color for a dynamically created chart


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out