1function DrawImage(MyPic,W,H){ 2 var flag=false; 3 var image=new Image(); 4 image.src=MyPic.src; 5 if(image.width>0 && image.height>0){ 6 flag=true; 7 if(image.width/image.height>= W/H){ 8 if(image.width>W){ 9 MyPic.width=W; 10 MyPic.height=(image.height*W)/image.width; 11 } 12 else{ 13 MyPic.width=image.width; 14 MyPic.height=image.height; 15 } 16 } 17 else{ 18 if(image.height>H){ 19 MyPic.height=H; 20 MyPic.width=(image.width*H)/image.height; 21 } 22 else{ 23 MyPic.width=image.width; 24 MyPic.height=image.height; 25 } 26 } 27 } 28}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.