1 write to bestBytesInRes
System.Drawing (1)
commonui\System\Drawing\Icon.cs (1)
729
bestBytesInRes
= EntryTemp.dwBytesInRes;
11 references to bestBytesInRes
System.Drawing (11)
commonui\System\Drawing\Icon.cs (11)
708
if (0 ==
bestBytesInRes
)
736
Debug.Assert(bestImageOffset >= 0 &&
bestBytesInRes
>= 0 && (bestImageOffset +
bestBytesInRes
) <= iconData.Length, "Illegal offset/length for the Icon data");
742
if (
bestBytesInRes
< 0) {
748
endOffset = checked(bestImageOffset +
bestBytesInRes
);
761
byte[] alignedBuffer = new byte[
bestBytesInRes
];
762
Array.Copy(this.iconData, bestImageOffset, alignedBuffer, 0,
bestBytesInRes
);
765
handle = SafeNativeMethods.CreateIconFromResourceEx(pbAlignedBuffer,
bestBytesInRes
, true, 0x00030000, 0, 0, 0);
770
handle = SafeNativeMethods.CreateIconFromResourceEx(checked(pbIconData + bestImageOffset),
bestBytesInRes
, true, 0x00030000, 0, 0, 0);
967
Debug.Assert(bestImageOffset >= 0 && (bestImageOffset +
bestBytesInRes
) <= iconData.Length, "Illegal offset/length for the Icon data");
1109
stream.Write(iconData, bestImageOffset,
bestBytesInRes
);