Here's a code snippet that throws the error "Could not create an internal image".
set display mode 640, 480, 32
sync on
sync rate 10
IK Reset Image Kit
IK Set Address UV 3,3
IK load effect "Distortion.fx",1
load image "DistortionMap.png",25
IK set effect technique 1, "Mapped"
IK set effect texture 1,"g_Map",25
IK create render target 69, 1280, 720
do
IK Resize Image 69, 1280, 720, 0
draw to image 69
for i = 1 to 50
x = rnd(1280)
y = rnd(720)
ink rgb(rnd(255),rnd(255),rnd(255)), 0
box x, y, x+rnd(200), y+rnd(200)
next i
center text 500, 500, "THIS IS A MORPHING TEST"
draw to bitmap 0
`inc uspeed#, 0.001
`IK Set Effect Float 1, "uSpeed", uspeed#
IK Resize Image 69, 640, 480, 0
IK Paste Image 69, 0, 0
sync
loop
Now here's the weird problem. Originally I was running this on my laptop with Win7-64. I booted up my desktop running Win7-64 and that code above works just fine. Both systems are up to date and have admin accounts. The only difference I see (aside from hardware) is that my desktop has Win7 installed on drive W: while the laptop install is on C.
Here's the example I used to flip a render image:
set display mode 640, 480, 32
sync on
sync rate 60
IK Reset Image Kit
rt = 1
ik create render target rt, 640, 480
draw to image rt
for i = 1 to 50
x = rnd(640)
y = rnd(480)
ink rgb(rnd(255),rnd(255),rnd(255)), 0
box x, y, x+rnd(200), y+rnd(200)
next i
text 100, 100, "HELLO WORLD"
draw to bitmap 0
do
if rightkey() and flag=0
flag = 1
ik flip image horizontally 1
endif
if rightkey()=0 then flag = 0
paste image rt, 0, 0
sync
loop
Again, this works on my desktop but not my laptop. It'll run, but soon as I hit the rightkey to flip the image, I get the same error. It appears there's something with my laptop that doesn't like your plugin. Maybe a graphics card issue? If I use the commands on a non-render target then they work fine on both systems. So it's definitely something to do specifically with render targets and my laptop.
Also, as I'm using "draw to image" from Matrix1 library, does your plugin include a compatible command?