Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Problem with bitmapfonts in DarkGDK

Author
Message
AlecG
13
Years of Service
User Offline
Joined: 12th Dec 2009
Location:
Posted: 12th Dec 2009 15:32
Hello everyone. I am new here and first of all I am sorry for my english.
I have some problems with bitmap fonts.
I have a bitmap (*.png) with the font I need. How can I show only the part of it?

For example ->
I have 512x512 image and how can I show the part of this image (x1,y1,x2,y2)
x1,y1,x2,y2 - are pixels of this bit map, coordinates of the rectangle with the ketter i need.

HI!
AlecG
13
Years of Service
User Offline
Joined: 12th Dec 2009
Location:
Posted: 12th Dec 2009 17:01
And one more quection...
When I pull the window it is filled with blue color and image is dissapeared.What should I do avoid this?

HI!
AlecG
13
Years of Service
User Offline
Joined: 12th Dec 2009
Location:
Posted: 13th Dec 2009 17:13
Please Help I can`t copy the part of image to the memblock and create image from this memblock. Can anybody help me?
Please show me how to do it using c++.

HI!
Pincho Paxton
20
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 15th Dec 2009 23:31
You probably need to ask in the Dark GDK forum. In DBpro you use get image x1,y1,x2,y2 etc. With a black background 0,0,0 it makes things easier, because the background is then transparent.

AlecG
13
Years of Service
User Offline
Joined: 12th Dec 2009
Location:
Posted: 15th Dec 2009 23:39
Sorry.. i thought this is the Dark GDK forum..

HI!

Login to post a reply

Server time is: 2023-01-31 12:58:58
Your offset time is: 2023-01-31 12:58:58