1 write to bestImageOffset
System.Drawing (1)
commonui\System\Drawing\Icon.cs (1)
728
bestImageOffset
= EntryTemp.dwImageOffset;
14 references to bestImageOffset
System.Drawing (14)
commonui\System\Drawing\Icon.cs (14)
736
Debug.Assert(
bestImageOffset
>= 0 && bestBytesInRes >= 0 && (
bestImageOffset
+ bestBytesInRes) <= iconData.Length, "Illegal offset/length for the Icon data");
738
if (
bestImageOffset
< 0) {
748
endOffset = checked(
bestImageOffset
+ bestBytesInRes);
759
if ((
bestImageOffset
% IntPtr.Size) != 0) {
762
Array.Copy(this.iconData,
bestImageOffset
, alignedBuffer, 0, bestBytesInRes);
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");
979
int newOffset =
bestImageOffset
+ Marshal.SizeOf(typeof(SafeNativeMethods.BITMAPINFOHEADER));
1109
stream.Write(iconData,
bestImageOffset
, bestBytesInRes);
1118
if (iconData != null && iconData.Length >=
bestImageOffset
+ 8) {
1119
int iconSignature1 = BitConverter.ToInt32(iconData,
bestImageOffset
);
1120
int iconSignature2 = BitConverter.ToInt32(iconData,
bestImageOffset
+ 4);