Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- If a module in a library needs an array to hold an image, just define a static array. Nobody will ever have an image bigger than 512 x 512, so a fixed-sizearray is OK. For best precision, make it an array of doubles. Bonus effect for hiding a 2 Meg static array which causes the program to exceed the memory of the client's machine and thrash like crazy even if they never use your routine.
Advertisement
Add Comment
Please, Sign In to add comment