mirror of
https://github.com/love2d/megasource.git
synced 2026-08-16 08:11:25 +02:00
Add DevIL 1.7.8.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
from DevIL import *
|
||||
|
||||
ilInit()
|
||||
image = ilGenImages(1)
|
||||
ilBindImage(image)
|
||||
|
||||
ilLoadImage('devil.gif')
|
||||
|
||||
data = ilGetData()
|
||||
for i in range(len(data)):
|
||||
if data[i] == 255:
|
||||
data[i] = 0
|
||||
ilSetData(data)
|
||||
|
||||
ilSaveImage('test.tga')
|
||||
Reference in New Issue
Block a user