边框图片,如何做贴图效果和对图片加边框???

如何做贴图效果和对图片加边框??? - 故障解答 - 电脑教程网

如何做贴图效果和对图片加边框???

日期:2007-01-28   荐:
如何做贴图效果和对图片加边框???问题是这样的:我现在要对已知的图片加上一个贴图,以原图作为背景,把贴图透明的贴到它上面去。还有就是 如何在原图上加一个边框,边框是我已经有的图片,边框图片是中间空的,周边有图案,我要把边框图片加到原图上后,原图不变,只是多了边框!帮顶。第二个我可以很笨的作出来。看看大家有什么好办法。各位帮忙啊,谢谢大侠了,很急啊TransparentBlt我在VC中做这个的TransparentBltThe TransparentBlt function performs a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source device context into a destination device context.BOOL TransparentBlt( HDC hdcDest, // handle to destination DC int nXOriginDest, // x-coord of destination upper-left corner int nYOriginDest, // y-coord of destination upper-left corner int nWidthDest, // width of destination rectangle int hHeightDest, // height of destination rectangle HDC hdcSrc, // handle to source DC int nXOriginSrc, // x-coord of source upper-left corner int nYOriginSrc, // y-coord of source upper-left corner int nWidthSrc, // width of source rectangle int nHeightSrc, // height of source rectangle UINT crTransparent // color to make transparent);
标签: