icons

Working with images (CGImage), exif data, and file icons

烈酒焚心 提交于 2019-12-10 10:17:05
问题 What I am trying to do (under 10.6).... I have an image (jpeg) that includes an icon in the image file (that is you see an icon based on the image in the file, as opposed to a generic jpeg icon in file open dialogs in a program). I wish to edit the exif metadata, save it back to the image in a new file. Ideally I would like to save this back to an exact copy of the file (i.e. preserving any custom embedded icons created etc.), however, in my hands the icon is lost. My code (some bits removed

Displaying Icons stored as resources with alpha using GDIPlus (WIn32 C++)

柔情痞子 提交于 2019-12-10 10:06:46
问题 I have an icon with partial alpha (alpha values between 0 and 255) that I want to display using GDIPlus. When using the Bitmap constructor of GDI+ that takes the direct filename, the file displays properly. However, when loading from resource, it has a problem recognizing alpha. I looked on MSDN, and there are problems with alpha: http://msdn.microsoft.com/en-us/library/windows/desktop/ms536318.aspx. By retrieving the ICONINFO structure from the Icon, I can get rid of the fully transparent

In Wix can an advertised shortcut use the icon from a systems file association?

限于喜欢 提交于 2019-12-10 09:58:58
问题 A question is about Wix and setting the icon of an advertised shortcut: If your installer contains a manual, or document in say .pdf format and you want to create a shortcut to the PDF file. Is it possible to use an icon for the shortcut based on the systems file associations? e.g. User has Adobe reader, the shortcut gets adobe pdf icon. User has Foxit/Other reader, the shortcut gets that program icon instead. etc. 回答1: As far as I understand the installer magic, this is not possible. This

Python PyInstaller and include icon file

倾然丶 夕夏残阳落幕 提交于 2019-12-10 09:24:45
问题 I am building an executable using PyInstaller (v1.5) -- also, I am using GUI2EXE to assist me. My script calls for an icon file located in the working directory: icon_file = '\pics\myicon.ico' When I build the executable, i would like to not have to include the "working directory", rather have the icon file included right in my executable. Is there a way to do this? If this doesn't make since, I want one file (my executable) that includes my icon file. How do I create one file to include the

Windows 10: Icons in taskbar have wrong size

≯℡__Kan透↙ 提交于 2019-12-10 09:23:38
问题 Since Windows 10 the Icons in the taskbar seems to have a size of 24x24px. This would be no problem, if Windows would choose the 24px version in an icon file for display. But it choose the 32px version and scales it down. That results in ugly artifacts, especially if you have striaght lines in your icons. Is this a core windows problem or are there any known workarounds? Tested with a plain WinForms (C#) application and a Delphi Application. 来源: https://stackoverflow.com/questions/32762463

Force the icons on the desktop to refresh after deleting items, or stop an item from being added in the first place

雨燕双飞 提交于 2019-12-10 07:59:08
问题 I have created a powershell script that listens for files to be created on the desktop. The file is immediately deleted if it meets certain criteria. I used Remove-Item $path where $path is the path to the file I want to delete. The problem is that windows still adds, and continues to show the item on the desktop. The file is definitely not there, since attempting to manipulate it will result in a 'Could not find this item', or 'File does not exist' error. Manually refreshing the desktop via

How to change UISearchBar Icon to custom image?

萝らか妹 提交于 2019-12-10 02:33:41
问题 Currently, I have the default magnifying glass as my search bar icon. However, I want to put a custom image in its place, particularly this image: Custom Arrow Icon How would I go about changing the search bar default icon to the custom image? 回答1: you can use setImage function searchBar.setImage(UIImage(named: "your image"), forSearchBarIcon: .Search, state: .Normal) Swift3 searchBar.setImage(UIImage(named: "Image Name"), for: .search, state: .normal) 回答2: Way 1 : As luiyezheng answer, You

How to style an unordered list with jQuery UI so that the elements begin with a UI icon instead of the default list symbol?

喜欢而已 提交于 2019-12-10 02:28:53
问题 I would like to use an icon from the jQuery UI icon set to style an unordered list. <div> <ul> <li>John Doe</li> <li>Jack Snow</li> <li>Mary Moe</li> </ul> </div> By default this list appears with dots in front of each element : John Doe Jack Snow Mary Moe Instead I would like to replace the dot with an icon such as ui-icon-person How to accomplish this? 回答1: I know this question is a little out-of-date - but here is a fully working example: HTML: <div> <ul class="icon person"> <li>John Doe<

App icon not changing after updating App

醉酒当歌 提交于 2019-12-10 02:27:54
问题 Getting reports that, after updating our app, the springboard icon does not update, requiring the device to be turned off and on for the change to take effect. This has happened when updating from a live version to a test build (via iTunes) and updating from an old (live) version to the latest live version (via appstore on device). This isn't a regular occurrence, but I am wondering what might be causing this? 回答1: Use "Build > Clean all Targets" and then build and run. Xcode doesn't always

Get application icon of C# WinForms App

淺唱寂寞╮ 提交于 2019-12-10 02:21:49
问题 I've assigned an icon to a C# WinForms app using the Project Properties tab. This icon is supplied along with the program manifest at build time. Is there a way to get an System.Drawing.Icon object of this icon at runtime, without having to embed it in resources again? I've done my research; There's a way to extract an icon out of an EXE, but nothing I can find to extract the icon off the running C# application from within the application. 回答1: Did you see the second answer in the link? (How