regarding how to save any array, here is a code that creates an icons and save it to an .ico file.
for changing the Pixels resolution, ,u can use the control image from your VB toolbox and set Stretch from its properties window to "TRUE", now u can change the resolution as u want,
i downloaded icon and got idea to save and make ico file. but i want to resize other images too. you used 321x321 and save 321-1/10 pixels.
how to resize jpg, bmp, etc .
also i want to change the color level to 2 bits or any bits color range. is it possible with thresh hold values. but how to make 16 bits color pixel into 8 colors only or 4 colors (specified by me--can be using threshhold (like matlab matrices manipulation) or can be red,blue,green,yellow only or any).
how to do it. will it be done using RGB data values selection if it is, then how? need help.
i am sorry, ,i don't have an accurate and precise answer for your question and really have no time to find it for you so i would advice to leave your question @ https://www.experts-exchange.com/
which is a large IT community that resembles elektroda in # of experts but in IT, u will probably get an answer(s) in less than 24 hours and will be the ultimate one.