pls
Junior Member
Posts: 24
|
Post by pls on Jun 13, 2018 13:19:10 GMT -8
Hi, I am really a retired hardware guy From the University of Washington, APL. The last paid coding I did was to reprogram a US Navy target about 1991 for a project in the arctic. Also it was in assembly for a Z80. So I hope I don't come off too obtuse. I have written some C and C++ code for a couple of small Arduino projects since I retired.
I converted and loaded a bunch of Bitmaps into memory by using your Python conversion program. What I want to do is to rotate and save six rotated bitmaps into an array, from the same original bitmap. I used your program to rotate and display the bitmap I wanted to use and it works fine. Now I need to get it into an array. (The other way to do this would be to use GIMP to make the six versions of the meteor and save them.)
Question 1. How do I reference a bitmap that is already loaded into memory? Do I use BitmapHandle(handle) even though the bit map is already loaded and has a handle?
Question 2. The bitmap is 22x24 pixels so assuming I use 16 bits per pixel I would get an array size of 6 times 1056 bytes. Correct?
Question 3. How do I set up an array with 1056 bytes per element?
Attached is what I have so far.
Thanks in advance- pls
|
|
pls
Junior Member
Posts: 24
|
Post by pls on Jun 14, 2018 9:40:46 GMT -8
All, Please ignore this question. From information on the web, it appears one cannot store a bitmap in an array. I will have make 6 images using gimp. Thanks pls
|
|