coollector.com
https://www.coollector.com/

Grid Bg
https://www.coollector.com/viewtopic.php?f=1&t=899
Page 1 of 1

Author:  kakashi [ Sat Apr 21, 2012 11:44 am ]
Post subject:  Grid Bg

(cool) Hector wrote:
(cool) Hector wrote:
If the background was fixed, I'd have to redraw the entire grid, even if it's scrolled by only 1 pixel.

I'll make some research to see if I can make it work by using transparency...

It seems like it would be possible if the bitmap you currently generate has an invisible background. You could generate the grid and scroll as fast as necessary while a separate image in the background stays stationary.

I'm not sure if this is what you mean but i once made a program to put an image over my desktop. It worked by using a function that causes a chosen rgb value in the bmp to show up as transparent.


Is that what you mean?
I ask because if that is possible without wasting resources then technically it should also be possible to have a stationary background and scrollable image frames\borders\mounts\backgrounds at the same time, allowing for a much more dynamic grid. e.g.
Attachment:
BlackGrey.jpg
BlackGrey.jpg [ 100.88 KiB | Viewed 3636 times ]

- these are just random images from Google, credit to whom credit is due :)

Author:  (cool) Hector [ Sat Apr 21, 2012 11:53 am ]
Post subject:  Re: Grid Bg

kakashi wrote:
It seems like it would be possible if the bitmap you currently generate has an invisible background.

Yep, thank you for your help, but I already know how to draw a transparent bitmap (there are many icons in the program that have a transparent background).

My problems are elsewhere:

1) will the scrolling remain smooth when drawing with transparency ?

2) I don't know yet how to create an image with some transparent parts, how to reset a part of the image, etc... Shouldn't be too much of a problem, but I have to make some research on the subject.

Author:  kakashi [ Sat Apr 21, 2012 12:00 pm ]
Post subject:  Re: Grid Bg

(cool) Hector wrote:
Yep, thank you for your help, but I already know how to draw a transparent bitmap (there are many icons in the program that have a transparent background).

I guess that means i kinda got what you were trying to explain then. Do I get a gold star? :D

(cool) Hector wrote:
1) will the scrolling remain smooth when drawing with transparency ?

That's what has me on the edge of my seat. That would make some really cool stuff possible. 8)

Author:  (cool) Hector [ Sat Apr 21, 2012 12:13 pm ]
Post subject:  Re: Grid Bg

kakashi wrote:
Do I get a gold star? :D

Of course !


kakashi wrote:
That would make some really cool stuff possible. 8)

Yep, I think it's worth the extra work. And if a user has an antique computer, he'll just have to pick up a skin that is less demanding.

Thank you for making me reconsider.

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/