Message 1 of 1
copy a bitmap derived from a JPG and die

Not applicable
09-23-2007
10:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Here's a fun one we ran into today
In 3ds Max 3, 5, 7 (tested) this is fine. In 3ds Max 8, 9....
There may be other filetypes that have this behavior, I haven't tested.
work-around:
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_