JPEG image over Tranparent Image problem

Hi,
I am just started my career as a developer few months back  and I am in my first project and I am struck. Please help.
I am developing  a website with asp.net and C#

In one of the web page, in an Image control, I have to display an image over an other image which I sucessfully did with various code articles help from the web. Now, in one scenario I have to place a smaller image first. Then over that I have to place a gif image(in which there is a circle transparent area). It is something like placing a photo in a photoframe. With some help from the web, I am able to display the gif image as transparent. But using Graphics.DrawImage when I combine the bottom image and then the gif image, the combined image comes out as a bad quality picture. Can anyone help on how to achieve something like a photo inside a photo frame, photo inside a clock. Pls pls help.

Regards,
Swami

0
swamik
12/22/2005 10:38:01 AM
asp.net.drawinggdi 1803 articles. 0 followers. Follow

4 Replies
778 Views

Similar Articles

[PageSpeed] 6

Hi,

By your ideas, I think you can save the combined image with JPEG format. And the effect is very perfect.

You can get a bad quality when you save a GIF image with GDI+. The reason is that GDI+ use halftone to processing GIF image. So you must create a color palette by yourself to save your image.

Thanks for your email and trusting me.


http://www.photosprite.net
0
jeepzj
12/23/2005 2:47:43 AM
Hi,
Thanks for your reply.

I tried it. But as soon as I place the jpg with the transparent gif, the combined pictures gets worse quality.
I really needs the top image to be transparent gif because if take an example of clock, the middle area where the time is getting displayed has to be transparent except the three needles(hour needle, minute needle, seconds needle) and the jpg image has to be filled in the transparent area in such a way that the three needles will be over it. I really got confused. Can you pls help me if possible with some code??


Regards,
Swami

0
swamik
12/23/2005 3:59:52 AM

Can you give me the JPEG and GIF images?


http://www.photosprite.net
0
jeepzj
12/23/2005 5:03:17 AM
Hi,
Thanks for your reply. I have sent you the email(hotmail id) with the both the files attached.

Awaiting your response.

Regards,
Swami

0
swamik
12/23/2005 5:33:12 AM
Reply:

Similar Artilces:

ADO.net problem: i can not view image data for the rest of my table rows except the image for the first row but i can read all the other non image fields for all rows.
Hi i have a table with the following fields imgid............int imgdata........image imgtitle.........varchar(max) imgType........varchar(max) imgLength.....bigint incident_id.....int i have no problem with uploading the image but viewing the uploaded image(s) in a gridview has caused me great pain. The probelm is i have two pages. page1 grabs the image to display and page2 has a gridview that displays the grabed image. I wanted to have an sql statement like SELECT * FROM mytable WHERE incident_id=someValue. IF i have 5 records in this table and i view page2 ...

Image on Image
I am trying to display a page that has image of a map on it. The user can then place other images of red thumbtacks on the image at different locations. Then when these thumb tacks are clicked on, they open a folder of pics related to the area. I saw a method in the imageButton class that returns the (x,y) of the location where the user clicked. I thought I could use this information to place another, smaller image button, on that area. My problem is that i can't seem to get the bottom imageButton to be transparent so I can see the smaller one. Am i on the right track with this. Any advi...

image and image
// create an image object, using the filename we just retrieved System.Drawing.Image image = System.Drawing.Image.FromFile(Server.MapPath(file)); // create the actual thumbnail imageSystem.Drawing.Image thumbnailImage = image.GetThumbnailImage(64, 64, new System.Drawing.Image.GetThumbnailImageAbort(ThumbnailCallback), IntPtr.Zero);   now my question is how to display this image in my image1 control in asp.net (version 1.1) the below line of code is not working.  Image1.ImageUrl=thumbnailImage.ToString();Mark As Answer If my reply helped you. Hi, you can save t...

Image in image
Hi, I have a project where clients viewing my website can buy t-shirts. They can choose from a number of t-shirt colors and shapes which are their plain colour. They can also choose a number of prints to be placed on the t-shirt. These will be graphics stored in a database. My problem is on how I can displaty the t-shirt with the graphics or logo they chose on te t-shirt. It would be something like drawing text on an image but instead drawing an existing image on the base image. Any Ideas? (I am using visual studio 2005 and vb.NET)   RegardsMerovingian you 1. You can create a...

Imaging, but not imaging
We multicasted to 43 machines. Updated the image on the master. Multicasted the updated image to 36 machines. (the other 7 wouldn't join the session for some unknown reason). I visually verified that all 36 were imaging. One of the 8 which didn't rename appears to not even have been imaged. The problems with the previous image were still there. It's as though the machine didn't image even though I saw it take part in the session and the temp bar going across the screen. What the heck's going on here? AlaN As a try, what happens if you boot either to PXE ...

Problem with colors when converting a TIF image in CMYK mode to a JPEG image in RGB mode
I am trying to convert a  TIF image in CMYK mode to a JPEG image in RGB by using the code at the end of this message.All works fine, but the colors in the resulted JPG file are really darker than the original TIF file, and it is really a problem for me. Does anybody know how could I do the conversion without losing the original colors ?I have tried the compnent http://www.aspjpeg.com/, and I did the conversion with the following code : ASPJPEGLib.IASPJpeg objJpeg; objJpeg = new ASPJPEGLib.ASPJpeg(); // Open source image objJpeg.Open(tiffFile.FullName); objJpeg.ToRGB(); objJpe...

Problems with a thumbnail image to popup Full-size image (image paths from a database)
I am hoping to get more feedback from entering this in perhaps a more appropriate forum.   Please refer to post   http://forums.asp.net/thread/1540002.aspx   I think I’ve explained what I would like to do but can’t figure out how to successfully code it.   I found it interesting that if I removed the Onclick event, my Bind error goes away.   And changing the Bind to an Eval traded the Bind error for a parser error.   How can I pass the path of the Full size image from my DB to the javascript so that ASP and Java both are OK with the coding?  ...

display image in a image image button
hi   i have to display an image in image button while uploading mycode Image1.ImageUrl = Upload.PostedFile.FileName; is not working thanks Hi You need to save the PostedFile to the disk on the server and then assign it to ImageUrl. Take a look at the following links for more infoprmation on how to do this.  http://www.codeproject.com/KB/aspnet/netimageupload.aspx http://www.stardeveloper.com/articles/display.html?article=2003022601&page=1Reza Nassabehwww.professionalcsharp.comDon't forget to click "Mark as Answer" on the post that helped you. That way ...

Reload Image in Image Control Problem!
hi,alli have a security image for user registeration,and i use Ajax to change picture when user can't read image,but there is a problem:when user click "Change Picture" image change only for one time!(Image Create in Physically path,but Previous image Show in image Control)i think,image control can't reload or physically path isn't refreshed! thanks for read my problem. Has the new image got the same name?  If so try using a new name and deleting the old file. I think the image is being cached. Add the below code to disable caching Response.Cache.SetCacheabi...

Problem retreiveing image from /images folder
Hi all, I have a simple search that would search for an image and print it out. Currently, my code is fine when the images are stored in the root folder.But when I code the DB to store the images into ~/Images i can retrieve the result but not the image in my Dataset.How do I make it so I can retrieve the images from the /Images folder regards  It would help if you posted the code that is either saving or retrieving the images. It may be as simple as using Page.ResolveUrl("~/Images/...") to get the correct virtual path, or Server.MapPath() to get the physical path.Mark...

problem related to image upload and retrive the image
hi every one i am using this code two upload two images or you can upload no of images from this code .  string filepath = "C:\\Uploads";  HttpFileCollection uploadedFiles = Request.Files; for (int i = 0; i < uploadedFiles.Count; i++) { HttpPostedFile userPostedFile = uploadedFiles[i];  userPostedFile.SaveAs(filepath + "\\" + System.IO.Path.GetFileName(userPostedFile.FileName)); } but whan i want to load only one image then it shows error:  Could not find a part of the path 'C:\Uploads\'. when i try to search that what is goi...

How (and when) is an image cached for an ASPX with ContentType = image/jpeg ?
I have a page 'GetImage.aspx' which takes 3 query string parameters: ID, Height, and Width. It uses the ID to retrieve binary image data from the database then scales the image to the given height and width. The content type for the page is set to "image/jpeg" so I can use this page as the url for an <img> tag or ImageButton control. Examples: <asp:ImageButton id="img" runat="server" ImageUrl="GetImage.aspx?ID=12345&Height=120&Width=200" /><img src=http://www.somedomain.com/GetImage.aspx?ID=12345&Height=120&...

Problem with the image context menu for GIF images.
There appears to be a bug in Firefox for .gif images, at least it is true on Flickr. Navigate to this page: http://www.flickr.com/photos/angelav/56272245/ Then right click on the main image and do View Image. The placeholder is selected instead. Alex -- alex iskold founder & cto http://www.adaptiveblue.com Alex Iskold wrote: >There appears to be a bug in Firefox for .gif images, at least it is true on Flickr. > >Navigate to this page: >http://www.flickr.com/photos/angelav/56272245/ > >Then right click on the main image and do View Imag...

Problem displaying image in Dynamic image control?
 Hi,    I have created a dynamic image control, where I get the imageURL from the database(sql server) by a query as follows:"SELECT  imgurl FROM mytable" .  This query on exceution retrieves the name of the .jpg file stored in the database and assigns it to variable 'qimage'. The dynamic image is created as :                Dim img As New Image                img.ImageUrl = Server.MapPath("~...

Web resources about - JPEG image over Tranparent Image problem - asp.net.drawinggdi

From My Craft Room: Thank You Cards
Pages Home Tutorials Templates Tips Awards Past DT and GDT Published in... Showing posts with label Thank You Cards . Show all posts Showing ...

'Transparent,' 'The Affair' Lead Golden Globes
Amazon and the CW took home their first ever Golden Globe Awards Sunday night at the 2015 Globes ceremony. Transparent , a family dramedy about ...

Charts Ninja - Beautiful HTML5 graphs & charts generator
Charts Ninja - Create beautiful HTML5 graphs & charts

Animatedtext GIFs on Giphy
Search Results for Animatedtext GIFs on Giphy

[Freebie] “Fluzzy” Twitter Icon Set
Meet Fluzzy, yet another high quality free Twitter icon set released exclusively for Hongkiat readers from our friend at Iconshock. You might ...

South Maui Rep Kaniela Ing Survey results
According to Maui Weekly, State Representative Kaniela Ing surveyed his south Maui constituents and found that: 61% favor marijuana legalization ...

Canada's new plastic $100 bill is all tricked out
Canada new plastic money is introduced this week, full of all kinds of high tech ways to stop counterfeiters.

Awards - Marc Raymond Wilkins Director
Marc Raymond Wilkins Director

Tranparent Tiles
... Microsoft News gdgt arena forums Navigate Home Windows 10 Office 365 Xbox azure Apps deals Contact About You are at: Home » Posts Tagged "Tranparent ...

TCA: Chris Carter Has 99 Cantos, But Won’t Binge One
Beverly Hills, Calif.Chris Carter intends his Amazon science fiction drama The After to last 99 episodes. “I have a goal, I told Amazon this ...

Resources last updated: 1/23/2016 8:00:35 PM