亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? i_ugldsp.cpp

?? 嵌入式開發(fā)工具
?? CPP
?? 第 1 頁 / 共 5 頁
字號:
	dib.stride = bitmap.width;	dib.colorFormat = UGL_DEVICE_COLOR_32;	dib.clutSize = 0;	dib.imageFormat = UGL_DIRECT;	dib.pClut = UGL_NULL;	dib.pImage = bitmapData;	if (transparent)	{		bitmap.transparent = true;		UGL_MDIB mDib;		mDib.height = bitmap.height;		mDib.width = mDib.stride = bitmap.width;		mDib.pImage = maskData;				bitmap.handle = uglTransBitmapCreate(devID, &dib, &mDib, UGL_DIB_INIT_DATA, 0, UGL_DEFAULT_MEM);	}	else		bitmap.handle = uglBitmapCreate(devID, &dib, UGL_DIB_INIT_DATA, 0, UGL_DEFAULT_MEM);	delete []bitmapData;	delete []maskData;#if defined(ZAF_RTOS)	ZafScreenDisplay::classSem->Give();#endif	if (bitmap.handle)		return (ZAF_ERROR_NONE);	else		return (ZAF_ERROR_INVALID);}ZafError ZafScreenDisplay::ConvertToZafBitmap(ZafBitmapStruct &){	return (ZAF_ERROR_INVALID);}ZafError ZafScreenDisplay::CopyOSBitmap(ZafBitmapStruct &dest, const ZafBitmapStruct &src){#if defined(ZAF_RTOS)	ZafScreenDisplay::classSem->Take(ZAF_WAIT_FOREVER_SEMAPHORE);#endif	if (dest.handle && !dest.staticHandle)		DestroyOSBitmap(dest);	UGL_DIB dib;	dib.height = src.height;	dib.width = dib.stride = src.width;	dib.colorFormat = UGL_DEVICE_COLOR_32;	dib.clutSize = 0;	dib.imageFormat = UGL_DIRECT;	dib.pClut = UGL_NULL;	dib.pImage = UGL_NULL;	dest.width = src.width;	dest.height = src.height;	dest.handle = uglBitmapCreate(devID, &dib, UGL_DIB_INIT_NONE, 0, UGL_DEFAULT_MEM);	BitmapBlt(&src, 0, 0, src.width, src.height, &dest, 0, 0);		#if defined(ZAF_RTOS)	ZafScreenDisplay::classSem->Give();#endif	return (ZAF_ERROR_NONE);}ZafBitmapStruct *ZafScreenDisplay::CreateOSBitmap(int width, int height){#if defined(ZAF_RTOS)	ZafScreenDisplay::classSem->Take(ZAF_WAIT_FOREVER_SEMAPHORE);#endif	ZafBitmapStruct *bitmap = new ZafBitmapStruct;	UGL_DIB dib;	dib.height = height;	dib.width = dib.stride = width;	dib.colorFormat = UGL_DEVICE_COLOR_32;	dib.clutSize = 0;	dib.imageFormat = UGL_DIRECT;	dib.pClut = UGL_NULL;	dib.pImage = UGL_NULL;	bitmap->handle = uglBitmapCreate(devID, &dib, UGL_DIB_INIT_NONE, 0, UGL_DEFAULT_MEM);	bitmap->width = width;	bitmap->height = height;		#if defined(ZAF_RTOS)	ZafScreenDisplay::classSem->Give();#endif	return (bitmap);}ZafBitmapStruct *ZafScreenDisplay::CreateOSBitmap(UGL_DIB *dib, UGL_MDIB *mDib){	if (!dib || !dib->pImage)		return (ZAF_NULLP(ZafBitmapStruct));#if defined(ZAF_RTOS)	ZafScreenDisplay::classSem->Take(ZAF_WAIT_FOREVER_SEMAPHORE);#endif	ZafBitmapStruct *bitmap = new ZafBitmapStruct;	if (mDib)	{		bitmap->transparent = true;		bitmap->handle = uglTransBitmapCreate(devID, dib, mDib, UGL_DIB_INIT_DATA, 0, UGL_DEFAULT_MEM);	}	else		bitmap->handle = uglBitmapCreate(devID, dib, UGL_DIB_INIT_DATA, 0, UGL_DEFAULT_MEM);	bitmap->width = dib->width;	bitmap->height = dib->height;		#if defined(ZAF_RTOS)	ZafScreenDisplay::classSem->Give();#endif	return (bitmap);}ZafError ZafScreenDisplay::DestroyOSBitmap(ZafBitmapStruct &bitmap){#if defined(ZAF_RTOS)	ZafScreenDisplay::classSem->Take(ZAF_WAIT_FOREVER_SEMAPHORE);#endif	if (bitmap.transparent)		uglTransBitmapDestroy(devID, bitmap.handle);	else		uglBitmapDestroy(devID, bitmap.handle);	bitmap.handle = ZAF_NULLH(UGL_BITMAP_ID);#if defined(ZAF_RTOS)	ZafScreenDisplay::classSem->Give();#endif	return (ZAF_ERROR_NONE);}// --- Icon -----------------------------------------------------------------ZafError ZafScreenDisplay::Icon(ZafCoordinate column, ZafCoordinate line, ZafIconStruct &icon){#if defined(ZAF_RTOS)    ZafAutoSemaphore autoSem(ZafScreenDisplay::classSem);#endif	int pixelColumn;	int pixelLine;	if (coordinateType == ZAF_PIXEL)	{		pixelColumn = int(column * scaleNumerator / scaleDenominator + originX);		pixelLine = int(line * scaleNumerator / scaleDenominator + originY);	}	else	{		pixelColumn = (int)(ConvertXValue(column, coordinateType, ZAF_PIXEL) * scaleNumerator / scaleDenominator + originX);		pixelLine = (int)(ConvertYValue(line, coordinateType, ZAF_PIXEL) * scaleNumerator / scaleDenominator + originY);	}	if (!icon.array)		return (ZAF_ERROR_VALUE_MISSING);	if (!icon.handle)		ConvertToOSIcon(icon);	// Save the user's clip region so can restore it when done drawing.	ZafRegionStruct clip, saveClip = ClipRegion();	// Draw the icon on the display.	uglBitmapBlt(gc, icon.handle, 0, 0, icon.width - 1, icon.height - 1,		UGL_DEFAULT_ID, pixelColumn, pixelLine);	return (ZAF_ERROR_NONE);}ZafError ZafScreenDisplay::ConvertToOSIcon(ZafIconStruct &icon){	if (!icon.array)		return (ZAF_ERROR_INVALID_SOURCE);	if (icon.handle && icon.StaticHandle())		return (ZAF_ERROR_INVALID_TARGET);	if (icon.handle)		DestroyOSIcon(icon);	ZafBitmapStruct bitmap;	bitmap.width = icon.width;	bitmap.height = icon.height;	bitmap.array = icon.array;	bitmap.staticArray = icon.staticArray;	ZafError error = ConvertToOSBitmap(bitmap);	if (error == ZAF_ERROR_NONE)	{		icon.handle = bitmap.handle;		icon.mask = bitmap.mask;		icon.transparent = bitmap.transparent;	}	return (error);}ZafError ZafScreenDisplay::ConvertToZafIcon(ZafIconStruct &){	return (ZAF_ERROR_INVALID);}ZafError ZafScreenDisplay::DestroyOSIcon(ZafIconStruct &icon){#if defined(ZAF_RTOS)	ZafScreenDisplay::classSem->Take(ZAF_WAIT_FOREVER_SEMAPHORE);#endif	if (icon.transparent)		uglTransBitmapDestroy(devID, icon.handle);	else		uglBitmapDestroy(devID, icon.handle);	icon.handle = ZAF_NULLH(UGL_BITMAP_ID);#if defined(ZAF_RTOS)	ZafScreenDisplay::classSem->Give();#endif    return (ZAF_ERROR_NONE);}// --- Image -----------------------------------------------------------------ZafError ZafScreenDisplay::Image(OSImageID imageID, const ZafRegionStruct &srcRegion, const ZafRegionStruct &destRegion){	if (!imageID)		return (ZAF_ERROR_VALUE_MISSING);#if defined(ZAF_RTOS)	ZafScreenDisplay::classSem->Take(ZAF_WAIT_FOREVER_SEMAPHORE);#endif	int pixelSrcLeft, pixelSrcTop, pixelDestLeft, pixelDestTop, pixelDestRight, pixelDestBottom;	int width = srcRegion.Width();	int height = srcRegion.Height();	if (coordinateType == ZAF_PIXEL)	{		pixelSrcLeft = (int)(srcRegion.left * scaleNumerator / scaleDenominator + originX);		pixelSrcTop = (int)(srcRegion.top * scaleNumerator / scaleDenominator + originY);		pixelDestLeft = (int)(destRegion.left * scaleNumerator / scaleDenominator + originX);		pixelDestTop = (int)(destRegion.top * scaleNumerator / scaleDenominator + originY);		pixelDestRight = (int)(destRegion.right * scaleNumerator / scaleDenominator + originX);		pixelDestBottom = (int)(destRegion.bottom * scaleNumerator / scaleDenominator + originY);	}	else	{		pixelSrcLeft = (int)(ConvertXValue(srcRegion.left, coordinateType, ZAF_PIXEL) * scaleNumerator / scaleDenominator + originX);		pixelSrcTop = (int)(ConvertYValue(srcRegion.top, coordinateType, ZAF_PIXEL) * scaleNumerator / scaleDenominator + originY);		pixelDestLeft = (int)(ConvertXValue(destRegion.left, coordinateType, ZAF_PIXEL) * scaleNumerator / scaleDenominator + originX);		pixelDestTop = (int)(ConvertYValue(destRegion.top, coordinateType, ZAF_PIXEL) * scaleNumerator / scaleDenominator + originY);		pixelDestRight = (int)(ConvertXValue(destRegion.right, coordinateType, ZAF_PIXEL) * scaleNumerator / scaleDenominator + originX);		pixelDestBottom = (int)(ConvertYValue(destRegion.bottom, coordinateType, ZAF_PIXEL) * scaleNumerator / scaleDenominator + originY);	}	if (srcRegion.Width() == destRegion.Width() && 		srcRegion.Height() == destRegion.Height())		uglBitmapBlt(gc, imageID, pixelSrcLeft, pixelSrcTop, 			pixelSrcLeft + width - 1, pixelSrcTop + height - 1, UGL_DEFAULT_ID, 			pixelDestLeft, pixelDestTop);	else		uglBitmapStretchBlt(gc, imageID, pixelSrcLeft, pixelSrcTop, 			pixelSrcLeft + width - 1, pixelSrcTop + height - 1, UGL_DEFAULT_ID, 			pixelDestLeft, pixelDestTop, pixelDestRight, pixelDestBottom);#if defined(ZAF_RTOS)	ZafScreenDisplay::classSem->Give();#endif    return (ZAF_ERROR_NONE);}// --- Mouse -----------------------------------------------------------------ZafError ZafScreenDisplay::Mouse(ZafCoordinate, ZafCoordinate, ZafMouseStruct &){	return (ZAF_ERROR_NONE);}ZafError ZafScreenDisplay::ConvertToOSMouse(ZafMouseStruct &mouse){	if (!mouse.array)		return (ZAF_ERROR_INVALID_SOURCE);	if (mouse.handle && mouse.StaticHandle())		return (ZAF_ERROR_INVALID_TARGET);	if (mouse.handle)		uglCursorBitmapDestroy(devID, mouse.handle);	UGL_ARGB argbClut[ZAF_MAXCOLORS];	uglColorConvert(devID, colorTable, UGL_DEVICE_COLOR_32,					argbClut, UGL_ARGB8888, ZAF_MAXCOLORS);	UGL_UINT8 *bitmapData = new UGL_UINT8[mouse.width * mouse.height];	for (int index = 0; index < mouse.height * mouse.width; index++)	{		UGL_UINT8 color = mouse.array[index] == ZAF_CLR_BACKGROUND ?			UGL_CURSOR_COLOR_TRANSPARENT : mouse.array[index];		bitmapData[index] = color;	}	UGL_CDIB cDib;	cDib.width = cDib.stride = mouse.width;	cDib.height = mouse.height;	cDib.hotSpot.x = mouse.hotSpotX;	cDib.hotSpot.y = mouse.hotSpotY;	cDib.clutSize = ZAF_MAXCOLORS;	cDib.pClut = argbClut;	cDib.pImage = bitmapData;	mouse.handle = uglCursorBitmapCreate(devID, &cDib);	delete []bitmapData;		return (ZAF_ERROR_NONE);}ZafError ZafScreenDisplay::ConvertToZafMouse(ZafMouseStruct &){	return (ZAF_ERROR_NONE);}ZafError ZafScreenDisplay::DestroyOSMouse(ZafMouseStruct &mouse){	if (!mouse.handle || mouse.StaticHandle())		return (ZAF_ERROR_INVALID_SOURCE);	uglCursorBitmapDestroy(devID, mouse.handle);	mouse.handle = ZAF_NULLH(UGL_CDDB_ID);	return (ZAF_ERROR_NONE);}// --- Text -----------------------------------------------------------------ZafError ZafScreenDisplay::Text(ZafCoordinate left, ZafCoordinate top,	const ZafIChar *text, int length, int hotKeyIndex, bool fill){#if defined(ZAF_RTOS)    ZafAutoSemaphore autoSem(ZafScreenDisplay::classSem);#endif    // Get the text size.	ZafRegionStruct textSize = TextSize(text, length);	// Draw the text (textSize.right and textSize.bottom are width & height).	return (Text(left, top,		left + textSize.right - 1, top + textSize.bottom - 1, text, length,		ZAF_HZ_LEFT, ZAF_VT_TOP, hotKeyIndex, fill));}ZafError ZafScreenDisplay::Text(ZafCoordinate left, ZafCoordinate top, ZafCoordinate right, ZafCoordinate bottom,	const ZafIChar *text, int length, ZafHzJustify hzJustify,	ZafVtJustify vtJustify, int hotKeyIndex, bool fill){	// Make sure we have a valid string.	if (!text || !text[0])		return (ZAF_ERROR_INVALID);#if defined(ZAF_RTOS)	ZafScreenDisplay::classSem->Take(ZAF_WAIT_FOREVER_SEMAPHORE);#endif    int pixelLeft;	int pixelTop;	int pixelRight;	int pixelBottom;	if (coordinateType == ZAF_PIXEL)	{		pixelLeft = int(left * scaleNumerator / scaleDenominator + originX);		pixelTop = int(top * scaleNumerator / scaleDenominator + originY);		pixelRight = int(right * scaleNumerator / scaleDenominator + originX);		pixelBottom = int(bottom * scaleNumerator / scaleDenominator + originY);	}	else	{		pixelLeft = (int)(ConvertXValue(left, coordinateType, ZAF_PIXEL) * scaleNumerator / scaleDenominator + originX);		pixelTop = (int)(ConvertYValue(top, coordinateType, ZAF_PIXEL) * scaleNumerator / scaleDenominator + originY);		pixelRight = (int)(ConvertXValue(right, coordinateType, ZAF_PIXEL) * scaleNumerator / scaleDenominator + originX);		pixelBottom = (int)(ConvertYValue(bottom, coordinateType, ZAF_PIXEL) * scaleNumerator / scaleDenominator + originY);	}	// Set up the fill line.	ZafIChar ZAF_FARDATA fillLine[256];#if defined(ZAF_UNICODE)	UGL_WCHAR ZAF_FARDATA fillLineW[256];#endif	if (length < 0)		length = strlen(text);	if (length > 255)		length = 255;	strncpy(fillLine, text, length);	fillLine[length] = '\0';	int hotKeyLeft, hotKeyRight;	hotKeyLeft = hotKeyRight = 0;	if (hotKeyIndex >= 0)	{		ZafIChar hotKeyBuf[2];		hotKeyBuf[0] = fillLine[hotKeyIndex];		hotKeyBuf[1] =	fillLine[hotKeyIndex] = 0;		hotKeyLeft = hotKeyIndex == 0 ? 0 : TextSize(fillLine).Width();		fillLine[hotKeyIndex] = hotKeyBuf[0];		hotKeyRight = hotKeyLeft + TextSize(hotKeyBuf).Width() - 1;	}	// Check for special characters.	strrepc(fillLine, '\t', ' ');	strrepc(fillLine, '\r', ' ');	strrepc(fillLine, '\n', ' ');	// Assign the rectangle to the region structure.	ZafRegionStruct textSize = TextSize(text), cRegion = ClipRegion();	int pixelWidth = (int)(ConvertXValue(textSize.Width(), coordinateType, ZAF_PIXEL) * scaleNumerator / scaleDenominator + originX);	int pixelHeight = (int)(ConvertYValue(textSize.Height(), coordinateType, ZAF_PIXEL) * scaleNumerator / scaleDenominator + originY);	int leftText = pixelLeft;	if (hzJustify == ZAF_HZ_RIGHT)		leftText = pixelRight - pixelWidth;	else if (hzJustify == ZAF_HZ_CENTER)	{		leftText += (pixelRight - pixelLeft - pixelWidth + 1) / 2;		if (leftText < pixelLeft)			leftText = pixelLeft;	}	// Adjust hotKey offsets.	hotKeyLeft += leftText;	hotKeyRight += leftText;	int topText = pixelTop;	if (vtJustify == ZAF_VT_BOTTOM)		topText = pixelBottom - pixelHeight;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成a人v欧美综合天堂下载 | 国产精品久线在线观看| 91精品国产综合久久久蜜臀粉嫩| 欧美制服丝袜第一页| 色噜噜狠狠一区二区三区果冻| 成人免费毛片高清视频| 丰满放荡岳乱妇91ww| 福利视频网站一区二区三区| 粉嫩av一区二区三区在线播放 | 久久综合色婷婷| 亚洲精品一区二区三区蜜桃下载 | 亚洲国产精品成人综合色在线婷婷| 精品播放一区二区| 久久精品亚洲精品国产欧美kt∨| 欧美日韩电影在线| 色八戒一区二区三区| 日本久久电影网| 欧美性受xxxx黑人xyx| 欧美丰满高潮xxxx喷水动漫| 91精品欧美福利在线观看| 日韩精品一区二区三区在线播放 | 91精品国产免费| 91精品麻豆日日躁夜夜躁| 欧美不卡123| 久久精品欧美一区二区三区不卡| 日本一区二区三区久久久久久久久不 | 精东粉嫩av免费一区二区三区| 蜜臀精品一区二区三区在线观看| 国产资源在线一区| 成人av资源在线观看| 欧美影视一区在线| 日韩一区二区在线观看视频| 久久久精品免费免费| 亚洲丝袜另类动漫二区| 天天综合色天天| 国产乱人伦精品一区二区在线观看| 99精品热视频| 欧美一区三区二区| 欧美国产国产综合| 亚洲国产精品久久人人爱蜜臀| 日本欧洲一区二区| 成人午夜电影小说| 欧美亚洲动漫制服丝袜| 久久青草国产手机看片福利盒子 | 国产二区国产一区在线观看| 91在线免费视频观看| 在线不卡中文字幕| 国产欧美日韩精品在线| 亚洲不卡av一区二区三区| 国产麻豆精品95视频| 欧美吻胸吃奶大尺度电影| 久久久久久久久97黄色工厂| 亚洲午夜久久久| 国产aⅴ精品一区二区三区色成熟| 色女孩综合影院| 久久精品一区八戒影视| 午夜精品久久久久久久| 床上的激情91.| 日韩午夜激情视频| 亚洲免费观看高清完整| 国产精品羞羞答答xxdd| 欧美人与性动xxxx| 国产精品美女一区二区| 精品夜夜嗨av一区二区三区| 色94色欧美sute亚洲线路一久| 久久亚洲精华国产精华液| 日韩精品一级中文字幕精品视频免费观看 | 亚洲成人精品一区二区| jiyouzz国产精品久久| 精品国产一区二区三区久久久蜜月 | 成人一区在线观看| 91精品久久久久久久久99蜜臂| 亚洲视频在线一区观看| 国产精品一区二区在线播放| 欧美一区二视频| 亚洲综合免费观看高清完整版| 国产福利91精品一区二区三区| 91精品国产免费久久综合| 夜夜嗨av一区二区三区网页| 成人精品国产免费网站| 久久午夜国产精品| 日韩av一区二区三区四区| 欧美在线一区二区三区| 亚洲精品日日夜夜| 91一区一区三区| 中文字幕一区二区在线观看| 国产精品影视网| 欧美tk—视频vk| 日本成人在线一区| 5月丁香婷婷综合| 图片区小说区区亚洲影院| 91福利精品第一导航| 亚洲卡通动漫在线| 99天天综合性| 亚洲欧美影音先锋| 94-欧美-setu| 亚洲色图20p| 色哟哟在线观看一区二区三区| 国产精品久久久久久亚洲毛片| 国产91精品久久久久久久网曝门| 久久久久久综合| 国产91精品一区二区麻豆亚洲| 精品国产123| 国产精品一区在线| 久久久99精品免费观看不卡| 国产一区二区不卡| 国产校园另类小说区| 国产精品一级在线| 国产精品乱码一区二区三区软件 | 欧美一级二级三级蜜桃| 天天综合网 天天综合色| 5月丁香婷婷综合| 久久er99精品| 久久精品日韩一区二区三区| 国产成人亚洲综合a∨婷婷| 久久久.com| 91视频在线看| 亚洲电影欧美电影有声小说| 欧美人牲a欧美精品| 奇米色777欧美一区二区| 日韩精品中午字幕| 国产一区激情在线| 国产精品久久久久影院老司| jvid福利写真一区二区三区| 一区二区欧美视频| 日韩视频在线你懂得| 国产一二精品视频| 亚洲欧洲一区二区在线播放| 在线一区二区三区做爰视频网站| 天堂在线一区二区| 精品国产免费久久| av激情亚洲男人天堂| 一区二区成人在线| 精品理论电影在线| 顶级嫩模精品视频在线看| 亚洲综合成人网| 欧美第一区第二区| 成人av资源下载| 午夜久久福利影院| 日本一区二区视频在线观看| 91亚洲精品一区二区乱码| 日韩黄色小视频| 中文字幕成人网| 欧美日韩大陆在线| 国产98色在线|日韩| 亚洲一区在线播放| 精品99999| 91毛片在线观看| 琪琪久久久久日韩精品| 国产精品二区一区二区aⅴ污介绍| 欧美日韩一区二区三区四区 | 在线免费观看日本一区| 免费成人你懂的| 自拍偷在线精品自拍偷无码专区| 欧美日韩国产成人在线免费| 丁香网亚洲国际| 免费不卡在线观看| 亚洲人成网站色在线观看 | 午夜激情一区二区三区| 国产视频不卡一区| 在线电影院国产精品| 99精品久久久久久| 久久精品国产亚洲一区二区三区| 亚洲美女视频在线| 久久久久久免费网| 91麻豆精品91久久久久同性| 成人av先锋影音| 韩国理伦片一区二区三区在线播放| 亚洲欧美aⅴ...| 欧美激情一区二区在线| 91精品国产欧美日韩| 色88888久久久久久影院野外 | 欧美精三区欧美精三区| 9久草视频在线视频精品| 久久超碰97人人做人人爱| 一区二区三区欧美视频| 国产人妖乱国产精品人妖| 在线播放日韩导航| 色婷婷久久久久swag精品| 成人夜色视频网站在线观看| 麻豆免费精品视频| 亚洲国产精品久久一线不卡| 亚洲三级免费电影| 国产丝袜在线精品| 精品日韩av一区二区| 欧美一区二区三级| 欧美日韩一二三区| 日本久久电影网| 91麻豆精品在线观看| 国产成人av电影在线观看| 美女一区二区久久| 日韩电影免费在线看| 亚洲在线一区二区三区| 亚洲日本护士毛茸茸| 日本一区二区三区dvd视频在线| 精品精品国产高清a毛片牛牛 | 玉米视频成人免费看| 中文字幕不卡三区| 欧美国产1区2区| 中文天堂在线一区|