rafiuddin syed wrote:
> Hi,
>   Sorry to trouble you
>    
>       what does this mean..
>   1. rolling your own library (instead of using a 
> third-party library)
>   2.nearest neighbor scaling 

1)  "Rolling your own library" means you opted to write your own code 
instead of using something someone else (or, in the case of ImageMagick, 
many "someones") has written and debugged and generally worked out most 
issues (e.g. performance).  Most libraries also have built-in scaling 
algorithms (that are also debugged).  There are merits to rolling your 
own library but you should have a good reason to do so before doing such 
things.  The BMP file format is a lot more complex than your code 
currently handles.

2)  There are different scaling algorithms.  Start Photoshop and scale 
an image using "Nearest Neighbor".  That's roughly the output you'll get 
from your code and it looks ugly when scaling smaller and usually pretty 
ugly when scaling larger on non-25% increments.  It is easy to do 
nearest neighbor.  For more complex algorithms, you should rely on a 
third-party library.

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* VerifyMyPC 2.5
Change tracking and management tool.
Reduce tech. support times from 2 hours to 5 minutes.

http://www.CubicleSoft.com/VerifyMyPC/

Reply via email to