icons

DrawIconEx leaving mask artifacts

亡梦爱人 提交于 2019-12-07 09:14:20
问题 I'm extracting jumbo icons for any given path using IImageList and SHGetFileInfo . Once I have that, I then render the HICON into a HBITMAP using DrawIconEx for eventual rendering with GDI+ Bitmap and Graphics objects. Now, this all works great, except that when I do the final rendering of the bitmap, the very left edge always has a black artifact on it. This is true for pretty much any icon I get, and is always the left edge. Any ideas where the dark line could be coming from? The code I'm

iOS Change icon in the search bar

廉价感情. 提交于 2019-12-07 07:33:44
问题 I'm trying to customize a search bar. I've figured out how to change the background and the text box within the search bar, but I can't find a way to change the icon that is default in the bar (the magnify glass icon). Is there a way to do this? 回答1: Open-source is your friend (just like cocoa is, huh): - (void)setSearchIconToFavicon { // Really a UISearchBarTextField, but the header is private. UITextField *searchField = nil; for (UIView *subview in searchBar.subviews) { if ([subview

iPhone: Localizing app icon still not supported?

送分小仙女□ 提交于 2019-12-07 07:14:55
问题 My app's icon includes some text. So I want to change language of the text by language or country. There is a post which says localizing app icon is not supported: But it was posted in December 2010, one and half years ago from now. Is it still not possible to change icon of app by language? Localizing both icon of app on device and icon on App Store are not supported? Or localizing icon only on App Store is possible? 回答1: This hasn't changed. I have the impression, given their guidelines not

Android status bar icon

痴心易碎 提交于 2019-12-07 06:58:22
问题 How do I put an icon into the android status bar? I don't want any notifications to be associated with it. Just the icon and nothing more. Thanks 回答1: The only way to put an icon in the status bar is to start a notification. 回答2: Don't know how to add them but read this on designing them. Also, http://www.youtube.com/watch?v=e74z0_Z5QWI 来源: https://stackoverflow.com/questions/7380270/android-status-bar-icon

Create scalable Three Line Menu Nav-icon for button in swift 2

牧云@^-^@ 提交于 2019-12-07 05:55:03
问题 How can I make my button scalable? Programmatically, using vector or something else? It is just a typical navigation icon with triple lines. Is there a simple way to create crisp, scalable icon without using images? 回答1: Yes you can create the icons using Core Graphics. Please follow these simple 4 steps to draw 3 bar button icon. 1) Add UIButton to your storyboard and place it. 2) Create Cocoa Class of base class UIButton name it like 'NavButton' and paste following code import UIKit class

Referencing a Bootstrap icon within jQuery datepicker buttonImage attribute?

最后都变了- 提交于 2019-12-07 05:49:44
问题 What value should I be using for the jQuery datepicker buttonImage attribute? I would like to use the Bootstrap calendar icon with the jQuery datepicker. I can use the icon image in the html page when referenced like this: <i class=icon-calendar></i> When I use the angular-ui wrapper ui-date to wrap the jQuery datepicker: <div class="control-group"> <label class="control-label" for="startDate">Start Date</label> <div class="controls"> <input class="span2" id="startDate" type="text" data-ng

Strange app icon duplication in pinned shortcut (Android O)

橙三吉。 提交于 2019-12-07 05:37:15
问题 I'm creating a pinned shortcut of my app launcher icon for Android O device (either emulator or physical device) and found strange behaviour. My code looks like this: @TargetApi(Build.VERSION_CODES.O) private void createPinnedShortcut(Context context) { ShortcutManager shortcutManager = context.getSystemService(ShortcutManager.class); if (shortcutManager != null) { if (shortcutManager.isRequestPinShortcutSupported()) { Intent intent= MainActivity.getLaunchIntent(this); intent.setAction(Intent

Moving to SVG icons - how to separate them from the code?

五迷三道 提交于 2019-12-07 04:59:14
问题 SVG icons have some advantages over font icons: they can be scaled to fit a variable-sized container element, and you can theoretically change color of individual paths. I also like the fact that I can easily make them in Inkscape :P But how do I move the SVG in the CSS file so they can be reused on the same page, like icon fonts, and still benefit from these advantages? The background property supports SVG, with background: url(#svg_element) , but that means I have to put the SVG in the HTML

.NET - Save icon with high(er) quality

佐手、 提交于 2019-12-07 04:56:32
问题 I am extracting the icon of an external application using ExtractIconEx , but when I attempt to save the icon using the Save() method of the Icon object, the icon is saved with a low quality, as in, the icon seems to have a lower colour depth than desired. The icon stored inside the application is certainly of a higher quality, as when I save the icon using ico.ToBitmap().Save("C:\\out.bmp") , the bitmap that is saved is of full quality/colour depth. So, how can I save an icon that is of the

Google Map icon (pin) - how to define color?

耗尽温柔 提交于 2019-12-07 04:11:51
问题 is it possible to change color of pin placed on google map creatted by it's api? or have to use custom icon to do that? it's google map api v3. tnx in adv! 回答1: You can declare the image when you initialize the map: var overlay; function initialize() { var myLatLng = new google.maps.LatLng(0, 0); var myOptions = { zoom: 11, center: myLatLng, mapTypeId: google.maps.MapTypeId.SATELLITE }; var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); var swBound = new google