File size: 725 Bytes
d5bfab8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
; Submitted by Simon Strandgaard
; Program Type: advanced
mov $80,$99
mov $81,100 ; address of vector[0].InputImage
mov $82,102 ; address of vector[0].ComputedOutputImage
mov $83,109 ; address of vector[0].GridColor
mov $84,110 ; address of vector[0].EnumeratedObjects
lps $80
mov $0,$$81
mov $1,$$84 ; enumerated objects
mov $2,$$83 ; grid color
f31 $0,104111 ; Find the single object that has different colors than the other objects. With 1 ignore color.
mov $1,255 ; color for the area to be trimmed
mov $2,$$81
f31 $0,102130 ; Pick pixels from color and image
; $1 is the color to be trimmed
f21 $0,101161 ; trim with color
mov $$82,$0
add $81,100
add $82,100
add $83,100
add $84,100
lpe
|