Hey,
i have found a code which generate headings at run time. here is my code which generate headings at run time - <img src="generate-headings.php?w=125&hd=Code" />
generate-headings.php Page
- $im = imagecreatetruecolor($_GET[w], 18);
-
$white = imagecolorallocate($im, 255, 255, 255);
-
$black = imagecolorallocate($im, 0, 0, 0);
-
imagefilledrectangle($im, 0, 0,$_GET[w], 18, $white);
-
$text = $_GET[hd];
-
$font = "fonts/myriad.ttf";
-
imagettftext($im,14,0,0,13,$black,$font,$text);
-
imagepng($im);
-
imagedestroy($im);
It creates images at run time successfully. But it did not allow me to create headings with transparent background. Is there any way to fixed that issue. Kindly help me out to sort this my problem. I always get a very excellent response from PHP Masters who do a lot for me here in this community so hope to fix this problem too.
Awaiting of reply
kind regards,
Mohsin Rafique
2 1500
I haven't much experience with creating transparent backgrounds, but have you played around with the: - imagefilledrectangle($im, 0, 0,$_GET[w], 18, $white);
I imagine that that is where is it making the background?
Yeh but without that it did not create heading and i want to create heading without background image color etc. I need to create transparent heading
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Efkas |
last post by:
My application have some level :
1. MyButton class with Label inheritance
2. MyComponent as User Control loading and positionning some of
MyButtons
3. MyApp loading and positionning MyComponent
...
|
by: Andre Nogueira |
last post by:
Hi there.
I have one question... How can I create a bitmap (programmatically), paint
it to a picture box and have a transparent background?
I don't know what will be below the picturebox because...
|
by: Adam Maltby |
last post by:
Hi,
I need to do a transparent label but with a difference.
I have drawn on my form a custom background using CreateGraphics as I needed an ellipse looking fill in a rectangle - so the actual...
|
by: Rhino |
last post by:
I've been updating some CSS today and got one odd error from the validator
at http://jigsaw.w3.org/css-validator/. Every time I had 'background:
transparent;' (or background-color: transparent;)...
|
by: RCS |
last post by:
I'm working on an ASP.NET webpage that generates an image (and am using VWD
2005 until my copy of VS2005 ships). I have done all the obvious (and
not-so-obvious) things to try to give a gif that I...
|
by: Martin |
last post by:
I've been complaing about the VB2005 Help-Information (or rather the lack of
it) before, but when I was looking how to set the backstyle of a label
control to "Transparent" I found that the VB2005...
|
by: lawrencec |
last post by:
Hi there,
I'm trying to add the values of a number of form fields and to get a
result at the end. It must loop and be able to dynamically update the
result of calculation. I have attached the...
|
by: Brian Ward |
last post by:
I am looking for a simple way to set the image transparency in a PictureBox.
I have a moving PictureBox containing a graphic image .. moving by
incrementing its Left property.
The background...
|
by: Stepheno |
last post by:
Hi,
I am a recently converted Iseries (AS/400) RPG programmer trying to learn HTML/CSS/JavsScript all at the same time (not fun). My problem deals mostly with CSS. I will be reveiving a table,...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |