BExplorer.Shell.ImageList.DrawInternal C# (CSharp) Метод

DrawInternal() приватный Метод

Draws the icon
private DrawInternal ( IntPtr hdc, int index, int overlayIndex, ImageListDrawOptions options, ImageListDrawStates state, int alpha, Point location, int newSize ) : void
hdc System.IntPtr A handle to the destination device context.
index int The zero-based index of the image to be drawn.
overlayIndex int The index of the overlay
options ImageListDrawOptions
state ImageListDrawStates A flag that specifies the drawing state. This member can contain one or more image list state flags. You must use comctl32.dll version 6 to use this member. See the Remarks.
alpha int Used with the alpha blending effect.
location Point The x and y coordinates that specifies where the image is drawn.
newSize int The new size of the image (Double Check)
Результат void
		private void DrawInternal(IntPtr hdc, int index, int overlayIndex, ImageListDrawOptions options, ImageListDrawStates state, int alpha, Point location, int newSize) {
			var param = new IMAGELISTDRAWPARAMS() {
				//himl = this.Handle;
				himl = this.Handle,
				hdcDst = hdc,
				rgbBk = -1,
				i = index,
				x = location.X,
				y = location.Y,
				fStyle = ((int)options | (overlayIndex << 8) | (newSize == -1 ? 0 : (int)ImageListDrawOptions.Scale)),
				fState = state,
				Frame = alpha
			};

			param.cx = param.cy = newSize == -1 ? 0 : newSize;
			param.cbSize = Marshal.SizeOf(param);

			var hresult = this._ImageList.Draw(ref param);
			Marshal.ThrowExceptionForHR(hresult);
		}