new topic     » goto parent     » topic index » view thread      » older message » newer message

How do I clip an image that has been loaded by read_bitmap()?
I am trying to fit a large picture into a 533x370 area.
I have the following section to clip the width that doesn't work.
It does run all of the lines, and length(tmp_img) is 800


if length(tmp_img) > 533 then
            tmp_img1=tmp_img[1..533]
            tmp_img=tmp_img1
end if
        display_image({11,49},tmp_img1)



I thought that it would look like this:

000001111
000001111
000001111
000001111
111111111
111111111

with 0's being the part I want to display

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu