Simon
Simon

Reputation: 34840

How to get high resolution images for Printers in .net?

If you go to "Control Panel\Hardware and Sound\Devices and Printers" in Windows 7 (and i assume vista) you will see some nice pretty pictures of printers.

See image below

Is it possible to get access to these images through .net?

For example to display them on a windows form?

example http://windows7-guide.com/images/articles/devices-and-printers.jpg

example
(source: maximumpc.com)

Upvotes: 2

Views: 489

Answers (3)

theY4Kman
theY4Kman

Reputation: 6105

They are available as .ICOs in %LOCALAPPDATA%\Microsoft\Device Metadata\dmrccache\

See http://www.istartedsomething.com/20090605/admiring-windows-7s-high-resolution-device-icons/

Upvotes: 4

Soroush Rabiei
Soroush Rabiei

Reputation: 10868

You don't need to extract them from Vista's DLLs (also it's possible). take a look at VitaIcons, you can download completed vista icon set there. but if you need to use Vista's original icons, extract them by an icon editor program from kernal files and dlls of vista.

some icon editors:
http://www.rw-designer.com/vista-icon-editor
http://www.freedownloadmanager.org/downloads/vista_icon_editor_software/

Upvotes: 0

Ian
Ian

Reputation: 34489

They'll be Microsoft copyrighted...

If you still really want to grab them there will be some DLL kicking around with them in. There's some in c:\windows\system32\shell32.dll although you'll need to check to see if these are the ones you want. You should then be able to extract the icons with an standard icon editor (e.g. IcoFx) straight from the DLL.

Upvotes: 2

Related Questions