Search found 355 matches

by datwill310
Apr 09, 2017 2:33
Forum: Beginners
Topic: FreeImage and Displaying Images *SOLVED*
Replies: 32
Views: 3280

Re: FreeImage and Displaying Images

MrSwiss wrote:It appears so, unless there are other procedures, to cope with 32bit (which then,
automatically includes Alpha).
As stated in the Manual: above 8bit's depth, all palette related stuff, is of no use ...

I may have to go over to bitmaps. RIP PNG. Thanks again all of you for your help
by datwill310
Apr 08, 2017 23:19
Forum: Beginners
Topic: FreeImage and Displaying Images *SOLVED*
Replies: 32
Views: 3280

Re: FreeImage and Displaying Images

Hi datwill310, I've no idea how (if at all) sGUI is influencing on Alpha etc. But in many cases Alpha on it's own produces not really what one might expect. I have just noticed something about the palette function cha0s made: sub palette_using_dib(byval dib as FIBITMAP ptr) dim as RGBQUAD ptr pal =...
by datwill310
Apr 08, 2017 17:41
Forum: Beginners
Topic: FreeImage and Displaying Images *SOLVED*
Replies: 32
Views: 3280

Re: FreeImage and Displaying Images

I mean, I could use some zLIB/BMP setup, but THAT seems like more trouble than it's worth... If I were still truly concerned with the amount of space used in my storage medium, then I would setup an automatic folder compression program that would work behind the scenes through the operating system ...
by datwill310
Apr 08, 2017 16:23
Forum: Beginners
Topic: FreeImage and Displaying Images *SOLVED*
Replies: 32
Views: 3280

Re: FreeImage and Displaying Images

I chose the PNG format because it uses A LOT less data than BMP files. yes, I am a memory saver too - a remnant from much earlier times when every byte mattered. But, honestly, how many total images do we have on our hard drives - probably measured in MB (in their raw format, not compressed), which...
by datwill310
Apr 08, 2017 16:19
Forum: Beginners
Topic: FreeImage and Displaying Images *SOLVED*
Replies: 32
Views: 3280

Re: FreeImage and Displaying Images

what is GFIE? GreenFish Icon Editor is a painting program which can do many cool things: like full alpha support, the creation of .ico files, as well as many more, batch converting image files, and even image extraction from .dll, .exe, and other archive files. Maybe even .jar files work! I've not ...
by datwill310
Apr 08, 2017 15:58
Forum: Beginners
Topic: FreeImage and Displaying Images *SOLVED*
Replies: 32
Views: 3280

Re: FreeImage and Displaying Images

I have always really liked PNG files because they support transparency and have very good compression. BUT... Due to FB's lack of direct PNG support (requires a library, etc) which inevitably leads to issues like you are having, I have come across a method which gives all the benefits of Transparen...
by datwill310
Apr 08, 2017 11:56
Forum: Beginners
Topic: FreeImage and Displaying Images *SOLVED*
Replies: 32
Views: 3280

Re: FreeImage and Displaying Images

Hi datwill310, I've no idea how (if at all) sGUI is influencing on Alpha etc. But in many cases Alpha on it's own produces not really what one might expect. Below a Union is used to be able to access every single Color-Channel: (aa, rr, gg, bb). The combination of the same manipulation on Alpha- + ...
by datwill310
Apr 07, 2017 23:29
Forum: Projects
Topic: Simple Font-Library
Replies: 11
Views: 2605

Re: Simple Font-Library

Looks interesting! May be very useful for my game (I quite like the fonts for screen modes like 20, but as they say, variety is the spice of life)!
by datwill310
Apr 07, 2017 23:19
Forum: Community Discussion
Topic: Download Website Security Issue FIXED
Replies: 13
Views: 1934

Re: ATTENTION TO FB DEV - DOWNLOAD WEBSITE SECURITY ISSUE?

It sounds like Sourceforge have just forgotten to get their sf.net certificate re-signed. But apart from that, it's pretty much still just as safe as it was the day before. It occurs to me we should probably get freebasic.net onto an HTTPS connection. I'm not really comfortable with the way my pass...
by datwill310
Apr 07, 2017 20:59
Forum: Beginners
Topic: FreeImage and Displaying Images *SOLVED*
Replies: 32
Views: 3280

Re: FreeImage and Displaying Images

How can I achieve this? A little excerpt from *fbGFX.bi*: const as integer GFX_NULL = -1 , _ GFX_WINDOWED = &h00 , _ GFX_FULLSCREEN = &h01 , _ GFX_OPENGL = &h02 , _ GFX_NO_SWITCH = &h04 , _ GFX_NO_FRAME = &h08 , _ GFX_SHAPED_WINDOW = &h10 , _ GFX_ALWAYS_ON_TOP = &h20 , _...
by datwill310
Apr 07, 2017 18:12
Forum: Community Discussion
Topic: Download Website Security Issue FIXED
Replies: 13
Views: 1934

Download Website Security Issue FIXED

Hi, so me and a collaborator of my game were wondering if we could support a Linux version. So I told him he'd have to get FB on his system, went to the home page, clicked the downloads link, and got this weird security error: Your connection is not private Attackers might be trying to steal your in...
by datwill310
Apr 06, 2017 17:43
Forum: Projects
Topic: sGUI
Replies: 238
Views: 43871

Re: sGUI

Nice to see a user :) At the moment I do not have much time for the further development of the new version. But if you are interested, you can take a look at the "current" development status: http://www.muttonhead.homepage.t-online.de/data/sGUI_v0.8.6.zip Mutton Like the new look! And loo...
by datwill310
Apr 06, 2017 16:02
Forum: Beginners
Topic: Reducing CPU Usage in Looping
Replies: 3
Views: 648

Re: Reducing CPU Usage in Looping

It's because your program is hogging the cpu. You are never giving the OS a chance to do anything. On some computers this will cause your program to hang because the OS will finally steal the cpu from you program. You can solve this by putting "sleep 1" in your main loop to give the OS so...
by datwill310
Apr 06, 2017 15:47
Forum: Beginners
Topic: Reducing CPU Usage in Looping
Replies: 3
Views: 648

Reducing CPU Usage in Looping

As you may or may not know, I am programming a game. In the main menu, I am using a do loop which contains: - Redrawing the screen: this only occurs once a certain redraw flag = true. - Checking for mouse input using a custom function (which is pretty minimalist: only a few lines). - Acting on mouse...
by datwill310
Apr 06, 2017 14:05
Forum: Beginners
Topic: FreeImage and Displaying Images *SOLVED*
Replies: 32
Views: 3280

Re: FreeImage and Displaying Images

For higher depths than 8pp, the transparent color is identified by looking just at the red (255), green (0) and blue (255) components of the color value. Therefore for 32 bpp depth, available working colors for transparent mode are RGBA(255, 0, 255, alpha). Ah yes! This works. However, I would like...

Go to advanced search