Image-Leptonica
view release on metacpan or search on metacpan
lib/Image/Leptonica/Func/boxfunc1.pm view on Meta::CPAN
or null if no overlap or on error
=head2 boxRelocateOneSide
BOX * boxRelocateOneSide ( BOX *boxd, BOX *boxs, l_int32 loc, l_int32 sideflag )
boxRelocateOneSide()
Input: boxd (<optional>; this can be null, equal to boxs,
or different from boxs);
boxs (starting box; to have one side relocated)
loc (new location of the side that is changing)
sideflag (L_FROM_LEFT, etc., indicating the side that moves)
Return: boxd, or null on error or if the computed boxd has
width or height <= 0.
Notes:
(1) Set boxd == NULL to get new box; boxd == boxs for in-place;
or otherwise to resize existing boxd.
(2) For usage, suggest one of these:
boxd = boxRelocateOneSide(NULL, boxs, ...); // new
magic_sizepack|||
magic_wipepack|||
make_matcher|||
make_trie_failtable|||
make_trie|||
malloc_good_size|||n
malloced_size|||n
malloc||5.007002|n
markstack_grow|||
matcher_matches_sv|||
mayberelocate|||
measure_struct|||
memEQs|5.009005||p
memEQ|5.004000||p
memNEs|5.009005||p
memNE|5.004000||p
mem_collxfrm|||
mem_log_common|||n
mess_alloc|||
mess_nocontext|||vn
mess_sv||5.013001|
( run in 1.399 second using v1.01-cache-2.11-cpan-71847e10f99 )