Posted: Tue Jun 12, 2001 8:28 am
Restored from previous forum. Originally posted by Shagwana.
Hello everyone!, Right I want ot use PB to code myself a map editor (much like mappy / tile studio ) but have 'hit' a brick wall while trying. As of version 2.30 (for windows) there are no commands for loading / drawing images to windows so it all has to be done using the Windows API I guess! So my question is how can I acheive the following things using the Windows API, because Im not to hot on this stuff myself!;
1.) Create a image in memory?
2.) Load a bitmap (or other image file) to the above image?
3.) Be able to read and write pixels to the above image?
4.) Be able to cut/copy smaller images out of the given image above?
5.) Be able to draw any given image to the windows display, usign it as solid block (every pixel is drawn) and also using a single colour as see-through?
6.) Also to be able to free the above image in memory?
Anyway thanks in advanced!
http://www.sublimegames.com
Hello everyone!, Right I want ot use PB to code myself a map editor (much like mappy / tile studio ) but have 'hit' a brick wall while trying. As of version 2.30 (for windows) there are no commands for loading / drawing images to windows so it all has to be done using the Windows API I guess! So my question is how can I acheive the following things using the Windows API, because Im not to hot on this stuff myself!;
1.) Create a image in memory?
2.) Load a bitmap (or other image file) to the above image?
3.) Be able to read and write pixels to the above image?
4.) Be able to cut/copy smaller images out of the given image above?
5.) Be able to draw any given image to the windows display, usign it as solid block (every pixel is drawn) and also using a single colour as see-through?
6.) Also to be able to free the above image in memory?
Anyway thanks in advanced!
http://www.sublimegames.com