To access all media simply use the static Get member:

MediaLib.Get[string icon];
MediaLib.getMedia(string icon);

To access item media with the correct quality background (including crafting icon):

MediaLib.Get[string itemIcon, ItemQuality itemQuality];
MediaLib.getItemIcon(string itemIcon, ItemQuality itemQuality);

To access rune media simply use the rune type {"a","b","c","d","e","none"}

//Example for a type-a rune:
MediaLib.Get["a"];
MediaLib.getMedia("a");

Media Lookup:

Media Lookup allows retrieval of specific sets of Media.

MediaLookup is divided into categories as follows:

  • Items
    • Armor
      • amulet
      • barbbelt
      • belt
      • boots
      • bracers
      • chestarmor
      • cloak
      • enchantressspecial
      • gloves
      • helms
      • mojo
      • orb
      • pants
      • quiver
      • ring
      • scoundrelspecial
      • shield
      • shoulders
      • spiritstone
      • templarspecial
      • voodoomask
      • wizardhat
    • Other
      • Consumables
      • Crafting
      • Dyes
      • Gems
        • amethyst
        • emerald
        • ruby
        • topaz
    • Weapons
      • axe_1h
      • axe_2h
      • bow
      • ceremonialdagger
      • ceremonialdagger_1h
      • combatstaff_2h
      • crossbow
      • dagger
      • fist
      • fistweapon_1h
      • handxbow
      • mace_1h
      • mace_2h
      • mighty_1h
      • mighty_2h
      • mightyweapon1h
      • mightyweapon2h
      • polearm
      • spear
      • staff
      • sword_1h
      • sword_2h
      • wand
      • xbow
  • Portraits
    • Artisans
    • Classes
      • Barbarian
      • DemonHunter
      • Monk
      • WitchDoctor
      • Wizard
    • Followers
  • Runes
  • Skills
    • Barbarian
      • Active
      • Passive
    • DemonHunter
      • Active
      • Passive
    • Enchantress
    • Monk
      • Active
      • Passive
    • Scoundrel
    • Templar
    • WitchDoctor
      • Active
      • Passive
    • Wizard
      • Active
      • Passive

So, for example, let's say you would like to pull all available Media for all amulets. This is what you can do:

 

MediaItem[] amulets = MediaLib.MediaLookup.Items.Armor.amulet;

 

From here you can access the media's name and bitmap:

 

string amuletName = amulets[0].Name;
Bitmap amuletIcon = amulets[0].Media;

 

All media is returned as a System.Drawing.Bitmap with the size of the original media.

Last edited Jul 6, 2012 at 5:14 AM by Promedius, version 6

Comments

No comments yet.