Question:

How do I change an image from a .png to a .dll???

by  |  earlier

0 LIKES UnLike

I have a ton of .png images I'd like to use as my folder icons.....but I have to have .dll images for icons. How do I convert???

 Tags:

   Report

4 ANSWERS


  1. DLL files are NOT images- they are dynamic linked libraries.

    A DLL can contain icon resources, but it is mainly executable code.

    If you want to use images as icons convert them to icon files - *.ico.

    Several image editors can do this, but remember an icon must contain the image at a range of specified resolutions, not just at one resolution.


  2. first, right-click on the image and use 'open with'- Internet explorer. Click on 'file' and 'save as'. At the bottom of the save window, you will have options as to what you want to save it as- just choose .dll.

  3. with resource compiler, i think so

    (added, 2 negatives! whyyy??)

    if he want to use png from dll, why dont????

    step-by-step instructions, i've tested with Delphi 7 (Pascal):

    create images.rc file, type there

    IMG1 IMAGE ICON1.PNG

    IMG2 IMAGE ICON2.PNG

    IMG3 IMAGE ICON3.PNG

    then execute "brcc32 images.rc" (brcc32 is a resource compiler for delphi7) - and you will get images.res file that will contain your png's

    after that, create file "pnglib.dpr", and type there:

    library pnglib;

    {$R images.res}

    begin

    end.

    execute "dcc32 pnglib.dpr"

    Voila! You have pnglib.dll that contain your PNG files as resources!

  4. You can't.  A .dll is not an image file.  A dll is a Dynamic Link Library.  Its basiclly a tiny program that other programs can use.  

    What I think you are trying to do is to put icon files into a .dll Library.

    What I think you want to do is first download a free icon creator.  Then you can use a program such as GConvert to put the .ico files into a .dll library.

Question Stats

Latest activity: earlier.
This question has 4 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.