Results 1 to 11 of 11

Thread: GDI+ Guru strikes again. :D

  1. #1

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    GDI+ Guru strikes again. :D

    Got bored at work today so I wrote a simple graphics class that draws speech bubbles on anything you have the graphics handle to...

    Demo project in the attachment

    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by wossname; Jul 1st, 2005 at 12:19 PM.
    I don't live here any more.

  2. #2
    Fanatic Member
    Join Date
    May 2005
    Posts
    898

    Re: GDI+ Guru strikes again. :D

    Without looking at the code I am going to guess that you took a rectangle and drew circles along its boudaries with random sizes and possibly random intervals.

    Right?
    "so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,710

    Re: GDI+ Guru strikes again. :D

    Another nice demo wossname!

    Question, why do you create a gr graphics and not use it? Your passing in the Me.CreateGraphics instead?
    Also, how does the antialiasing apply to the drawtext? Is it because its a Graphics object and not a GraphicsPath object?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: GDI+ Guru strikes again. :D

    Good point. it was just me being forgetful.

    File updated.
    Last edited by wossname; Jul 1st, 2005 at 12:18 PM.
    I don't live here any more.

  5. #5

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: GDI+ Guru strikes again. :D

    Quote Originally Posted by grilkip
    Without looking at the code I am going to guess that you took a rectangle and drew circles along its boudaries with random sizes and possibly random intervals.

    Right?
    That's pretty much it yeah.

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,710

    Re: GDI+ Guru strikes again. :D

    So, how does the antialiasing apply to the drawtext? Is it because of the Graphics class and not GraphicsPath class? I'm sure I could
    look it up but your the GDI+ Guru so its more fun to ask you.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  7. #7
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Maine, USA
    Posts
    277

    Re: GDI+ Guru strikes again. :D

    Quote Originally Posted by wossname
    That's pretty much it yeah.
    It is still just as l337
    <deis> I turn on god mode when I program
    <deis> I just call it .NET


    If my post was helpful, please Rate it

  8. #8
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    Re: GDI+ Guru strikes again. :D

    one funky thing i noticed off the bat was that when the area is too small, the text is truncated. Well, actually it's THERE but u can't see it...if you decide to extend this control, and i hope you do, maybe have the text adjust to the size of the container?

    I really like this!

  9. #9

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: GDI+ Guru strikes again. :D

    Antialiasing only applies to the Graphics object itself. So any subsequent drawing oparations carried out on the graphics object will have antialiasing applied to them.

    There are varying levels of renderin quality available last time I looked there were 5 properties (in the graphics object) all directly affecting the quality of the drawn image.

    It would be relatively easy to add shrinkable fonts to this class. I'll think about it.
    I don't live here any more.

  10. #10
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    Re: GDI+ Guru strikes again. :D

    You should post this in the codebank..It shows a great deal about painting.

  11. #11
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,710

    Re: GDI+ Guru strikes again. :D

    Good suggestion. Moved.
    Last edited by RobDog888; Jul 1st, 2005 at 03:51 PM.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

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