icons

Is there a standard icon size and color depth for J2ME?

别说谁变了你拦得住时间么 提交于 2019-12-12 08:59:10
问题 There are many phones, each with it's own icon size (for example, Nokia has 19 different sizes, http://www.j2meforums.com/wiki/index.php/Application_Icon_sizes). I would like to use only one icon (even if it's displayed poorly). Is there a single icon size and color depth that displays in all phones? 回答1: There is no standard size, and some phones will not even show the icon if it is not the exact width and height specified for the device. Some phones may attempt to scale your icon up or down

How does Vista generate the icon for documents associated to my application?

家住魔仙堡 提交于 2019-12-12 08:53:39
问题 Can I affect the process? I have an application built in .NET 3.5 / VS2008. I have embedded multiple icons into the app with a win32 .res file. This is done in the Properties box for the Project in VS2008 - instead of specifying an .ico file, tick the box to specify a .res file. In the .res file you can have multiple icons. See here for what I mean. Each icon includes a 256x256xRGB (PNG Cmopressed) "Vista grade" image, a 256x256x32bit image, and the usual cascade of 48x48, 32x32, and 16x16

Get associated icon from file, folder or drive without WinAPI

江枫思渺然 提交于 2019-12-12 08:40:04
问题 Is there a way to get an associated icon in C# without using any DllImports? When I use Icon.ExtractAssociatedIcon I don't seem to get the icon for drives, folders, SpecialFolder's in Environment or any files on network attached folders. So is there any other way to get an icon using .NET? 回答1: .Net have only one method for extracting associated icons, and you already mentioned about it. Every lib you can find uses pinvokes, because they get icons from windows. So if you need to fully

Application icon stretches to title bar height when using MahApps.Metro

蹲街弑〆低调 提交于 2019-12-12 08:01:18
问题 How to prevent application icon from stretching to the height of the title bar when using MahApps.Metro? No spaces between icon and title bar edges no matter what size of icon used. I have also tried using multi-sized icons and this does not work. Here is an example out of the box of what it looks like: 回答1: Strongly inspired from mahapps punker76's code, you can do this: <MahApps:MetroWindow.IconTemplate> <DataTemplate> <Grid Width="{TemplateBinding Width}" Height="{TemplateBinding Height}"

Get Icon from UWP App

▼魔方 西西 提交于 2019-12-12 07:51:26
问题 I want to extract the icon of an UWP App to build a Explorer like "Open With" menue. With the help of SHAssocEnumHandlers i managed to get the associated applications to a given file extension. With IAssocHandler::GetIconLocation i get for UWP Apps (Microsoft Edge) something like: @{Microsoft.MicrosoftEdge_41.16299.371.0_neutral__8wekyb3d8bbwe?ms-resource://Microsoft.MicrosoftEdge/Files/Assets/MicrosoftEdgeSquare44x44.png} If i use SHLoadIndirectString on this string i get: C:\WINDOWS

Cordova - Adaptive icons on Android

ⅰ亾dé卋堺 提交于 2019-12-12 07:47:07
问题 I have a generated set of icons using Android Image Asset Studio. However, I do not know how I can set those icons to my app in Cordova . When following the documentation regarding icons in Cordova, I only managed to set the square icons to my project using the following code: <platform name="android"> <!-- ldpi : 36x36 px mdpi : 48x48 px hdpi : 72x72 px xhdpi : 96x96 px xxhdpi : 144x144 px xxxhdpi : 192x192 px --> <icon src="res/android/ldpi.png" density="ldpi" /> <icon src="res/android/mdpi

Get icon of the default application that opens a file

狂风中的少年 提交于 2019-12-12 07:37:18
问题 I have the mime-type of a particular file. I want to get the icon of the default application that opens the file. So for music, I would display the Winamp icon if that was my default music player. How can I do this? 回答1: Compose an intent with the given mime type and file URI and call PackageManager.queryIntentActivities on it. Something like this: final Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(fileUri); intent.setType("image/png"); final List<ResolveInfo> matches =

Difference between ExtractIcon and ExtractAssociatedIcon? Need to extract icon of specific size

扶醉桌前 提交于 2019-12-12 07:23:34
问题 Say, if I want to extract an icon out of a stock Windows executable. I can get that icon ID by opening it in Visual Studio: Then I'll be interested in a 48x48 size icon: So my assumption was to do: HICON hIcons[4]; ::ExtractIconEx(L"mstsc.exe", -13011, hIcons, NULL, 4); hIconLogo = hIcons[3]; but when I run it, the method returns only 3 icons: and only one of them is a 32x32 version of what I need. I then found ExtractAssociatedIconEx API that I called as such: WORD wIcnId = -13011; WORD

Is it possible to set the icon or launch screen in Xcode programmatically?

喜欢而已 提交于 2019-12-12 06:44:53
问题 I have an app that would get used by different clients with slight tweaks for each client, including a different icon and launch screen. Is it possible to program the app to grab those images off of a server and use them, or would I need to manually put them into each iteration of the app the normal way? 回答1: It is impossible to change the App Icon programmatically using only public API as well as change launch screen at runtime. You may create some kind of "fake"- launch screen , that will

How to add actionbar white icon in android

拥有回忆 提交于 2019-12-12 06:18:54
问题 I'm trying to add actionbar icon into the android studio and i've do this: Go to ImageAssets and set the icon for Actionbar and TabIcons and then refer that in menu icon. But, it's a little bit black when the app compiled, like this: as you can see, search icon is a little bit black. So, what is the problem? I've tried this with copy pasting the icon into drawable(without adding in ImageAssets ) and it was white but, it's haven't any good resolution or quality. How we can add a right or