---
name: "dtk_texture_getsize"
section: "3"
platform: "linux"
package: "libdrawtk-dev"
version: "2.0-2.1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/dtk_texture_getsize"
---

# dtk\_texture\_getsize(3)

Return texture size in pixel

## NAME

dtk\_texture\_getsize - Return texture size in pixel

## SYNOPSIS

**#include \<drawtk.h\>**

**void dtk\_texture\_getsize(dtk\_htex** *tex***, unsigned int \****w***,**\
                                            **unsigned int \****h***);**\

## DESCRIPTION

This function returns the size in pixel of the original image of the texture *tex* into the values pointed by *w* and *h*. If *tex*, *w* or *h* is NULL, the function does nothing.

## RETURN VALUE

None

## SEE ALSO

[**dtk\_load\_image**(3)](/dtk_load_image/3.md)
