You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This function generates a new FObjectThumbail from an object. By default texture streaming is flushed after the creation of the thumbnail. By specyfing 'no_flush' the streaming will not be flushed.
20
+
21
+
## The FObjectThumbail object
22
+
23
+
This class represents a thumbnail
24
+
25
+
26
+
The following methods are available:
27
+
28
+
```python
29
+
width = thumbnail.get_image_width()
30
+
```
31
+
32
+
```python
33
+
height = thumbnail.get_image_height()
34
+
```
35
+
36
+
```python
37
+
# caould return zero if the thumbnail is not compressed
38
+
size = thumbnail.get_compressed_data_size()
39
+
```
40
+
41
+
```python
42
+
# returns BGRA bytearray of pixels
43
+
data = thumbnail.get_uncompressed_image_data()
44
+
```
45
+
46
+
```python
47
+
# if this is a newly created thumbnail, force compression
48
+
thumbnail.compress_image_data()
49
+
```
50
+
51
+
For a handy example about the thumbnail api check https://github.com/20tab/UnrealEnginePython/blob/master/examples/thumbnail_viewer.py
0 commit comments