It is currently Thu Mar 28, 2024 7:08 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Grid Bg
PostPosted: Sat Apr 21, 2012 11:44 am 
Offline
User avatar

Joined: Thu Jan 06, 2011 2:29 am
Posts: 707
Location: Jamaica
(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 3616 times ]

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


Last edited by kakashi on Sat Apr 21, 2012 12:01 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: Grid Bg
PostPosted: Sat Apr 21, 2012 11:53 am 
Offline
User avatar

Joined: Tue Sep 27, 2005 2:28 am
Posts: 7632
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.


Top
 Profile  
 
 Post subject: Re: Grid Bg
PostPosted: Sat Apr 21, 2012 12:00 pm 
Offline
User avatar

Joined: Thu Jan 06, 2011 2:29 am
Posts: 707
Location: Jamaica
(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)


Top
 Profile  
 
 Post subject: Re: Grid Bg
PostPosted: Sat Apr 21, 2012 12:13 pm 
Offline
User avatar

Joined: Tue Sep 27, 2005 2:28 am
Posts: 7632
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 35 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2024 phpBB Group