copy a bitmap derived from a JPG and die

copy a bitmap derived from a JPG and die

Anonymous
Not applicable
1,024 Views
0 Replies
Message 1 of 1

copy a bitmap derived from a JPG and die

Anonymous
Not applicable
Here's a fun one we ran into today

In 3ds Max 3, 5, 7 (tested) this is fine. In 3ds Max 8, 9....


-- this is fine and creates a copy of the bitmap in memory
a = openBitmap "c:\\test\\test.png"
a_ = copy a

-- this throws a **system exception**
b = openBitmap "c:\\test\\test.jpg"
b_ = copy b


There may be other filetypes that have this behavior, I haven't tested.

work-around:


-- this does work. Might be a bit slower internally - for a single operation it's certainly not noticeable.
b_ = bitmap b.width b.height
copy b b_
0 Likes
1,025 Views
0 Replies
Replies (0)