Results 1 to 40 of 55

Thread: [VB6] Icon Resource Organizer

Hybrid View

  1. #1
    Hyperactive Member
    Join Date
    Jul 2010
    Posts
    273

    Re: [VB6] Icon Resource Organizer

    Not related to the current thread topic, but related to AlphaImage mentioned above. I've downloaded AlphaImage zip. Because I can't readily run it (as it is for OCX), so I take a quick look at the code block concerning WMF/EMF. There is a small point I wish to raise (before you wind up your revision of AlphaImage).

    Please set your Windows to Large Font, i.e. 120 DPI, test a WMF/EMF to see whether the size you obtain (reported by your OCX) is the same as you would in a normal 96 DPI screen. If not, you may wish to adjust the width and height downward by a factor of "96 / 120" whereas 120 is the actual screen resolution you would obtain from a Windows API call.

    I raise this point because most people omit to address it in their code dealing with stdPicture size for WMF/EMF.

  2. #2

    Thread Starter
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: [VB6] Icon Resource Organizer

    Quote Originally Posted by petersen View Post
    Please set your Windows to Large Font, i.e. 120 DPI, test a WMF/EMF to see whether the size you obtain (reported by your OCX) is the same as you would in a normal 96 DPI screen. If not, you may wish to adjust the width and height downward by a factor of "96 / 120" whereas 120 is the actual screen resolution you would obtain from a Windows API call.

    I raise this point because most people omit to address it in their code dealing with stdPicture size for WMF/EMF.
    I'll look at it later, but don't expect any issues. WMF/EMF are not being processed as such. I know how to scale the metafile from its contained resolution parameters for the current DPI. But WMF/EMF do not work well in GDI+ when wanting to manipulate the image, i.e., can't grayscale metafiles with GDI+. So, internally, WMF/EMF are saved to PNG for display. GDI+ when saving metafile to another format, calculates the size in relation to DPI during the process.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

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