예제 #1
0
 public static void GetIconHandlesFromImageSource(ImageSource image, out NativeMethods.IconHandle largeIconHandle, out NativeMethods.IconHandle smallIconHandle)
 {
     IconHelper.EnsureSystemMetrics();
     largeIconHandle = IconHelper.CreateIconHandleFromImageSource(image, IconHelper.s_iconSize);
     smallIconHandle = IconHelper.CreateIconHandleFromImageSource(image, IconHelper.s_smallIconSize);
 }
예제 #2
0
 // Token: 0x06007912 RID: 30994 RVA: 0x00226D6C File Offset: 0x00224F6C
 private static int MatchImage(BitmapFrame frame, Size size, int bpp)
 {
     return(2 * IconHelper.MyAbs(bpp, IconHelper.s_systemBitDepth, false) + IconHelper.MyAbs(frame.PixelWidth, (int)size.Width, true) + IconHelper.MyAbs(frame.PixelHeight, (int)size.Height, true));
 }