Results 1 to 4 of 4

Thread: Pattern Brush Fill

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Pattern Brush Fill

    Not much here, just an example that creates a very simple bar chart about "pie" (thus the silly name "Pie graph" in the Caption).

    Shows the use of bitmap images for tiled fills when drawing. Nothing extra needed, it's all VB6 and a few GDI calls.

    Name:  sshot.png
Views: 552
Size:  2.3 KB

    Note the use of SetBrushOrgEx() to align the pattern for each use. You can comment out that call to see why it can be useful.
    Attached Files Attached Files

  2. #2
    Fanatic Member
    Join Date
    Aug 2016
    Posts
    678

    Re: Pattern Brush Fill

    good idea

  3. #3
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,600

    Re: Pattern Brush Fill

    Gives a new meaning to the phrase "pie chart".....
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  4. #4
    Lively Member
    Join Date
    Mar 2015
    Posts
    104

    Re: Pattern Brush Fill

    Thanks for the nice example. I thought this was a "pictograph"

    Just a question: Should Feb and Mar show 2 and 3 pictures only and not the extra bits?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width