Exemplo n.º 1
0
/* coverity[+alloc : arg-*6] */
GpStatus WINGDIPAPI
GdipCreateTextureIAI (GpImage *image, GpImageAttributes *imageAttributes, int x, int y, int width, int height, GpTexture **texture)
{
	/* FIXME MonoTODO: Make use of ImageAttributes parameter when
	 * ImageAttributes is implemented */
	GpWrapMode mode = imageAttributes ? WrapModeClamp : WrapModeTile;
	return GdipCreateTexture2I (image, mode, x, y, width, height, texture);
}
Exemplo n.º 2
0
/* coverity[+alloc : arg-*6] */
GpStatus WINGDIPAPI
GdipCreateTexture2 (GpImage *image, GpWrapMode wrapmode, REAL x, REAL y, REAL width, REAL height, GpTexture **texture)
{
	if (!gdiplusInitialized)
		return GdiplusNotInitialized;

	return GdipCreateTexture2I (image, wrapmode, (INT) x, (INT) y, (INT) width, (INT) height, texture);
}
Exemplo n.º 3
0
/* coverity[+alloc : arg-*6] */
GpStatus WINGDIPAPI
GdipCreateTextureIAI (GpImage *image, GpImageAttributes *imageAttributes, INT x, INT y, INT width, INT height, GpTexture **texture)
{
	if (!gdiplusInitialized)
		return GdiplusNotInitialized;

	/* FIXME MonoTODO: Make use of ImageAttributes parameter when
	 * ImageAttributes is implemented */
	GpWrapMode mode = imageAttributes ? imageAttributes->wrapmode : WrapModeTile;
	return GdipCreateTexture2I (image, mode, x, y, width, height, texture);
}
Exemplo n.º 4
0
/* coverity[+alloc : arg-*6] */
GpStatus WINGDIPAPI
GdipCreateTexture2 (GpImage *image, GpWrapMode wrapMode, float x, float y, float width, float height, GpTexture **texture)
{
	return GdipCreateTexture2I (image, wrapMode, (int) x, (int) y, (int) width, (int) height, texture);
}