.NETGURU
ASPFriends.com 'ngfx-drawing' list
Up to: Discussion Lists

  • RSS Syndication
  • Latest Discussions Archive
    8bit color support (4 replies)
    ASPFriends.com 'ngfx-drawing' list
    Moved from [review ngdocs] to [ngfx drawing] by Alex Lowe webmaster@asp grandrapids.net Hi,I hope I'm posting to the right group and that someone from the Microsoft personnel can actually help me out. I can't find anywhere in the documentation what support is offered for 8bit color. I've created a little app in C# to display 256 shades of gray and although it works fine for 32 and 16 bit color, wh...
    hexadecimal to color (6 replies)
    ASPFriends.com 'ngfx-drawing' list
    How can I convert a hexadecimal colorcode (ie #b5ccff) to a System.Drawing.Color object (C#)? Thanks, Yannick Smits
    SV: Re: hexadecimal to color (3 replies)
    ASPFriends.com 'ngfx-drawing' list
    That strikes me as odd, I just tested the following, and it works like a breeze: label1.Backcolor 3D Color.FromName("#0000cd") Are you importing the 'System.Drawing' namespace? Regards/Halsningar Andre Colbiornsen Sonnenburg Communications Bergsgatan 3, SE 211 54 Malm F6 Sweden Tel.: 46 (0)40 97 78 80 Fax.: 46 (0)40 97 78 80 Mob.: 46 (0)708 97 78 79 Mail: colbiornsen@sonnenburg.se Web.: www.sonnen...
    How to Save a generated image to SQL Server (5 replies)
    ASPFriends.com 'ngfx-drawing' list
    Could someone please shed some light on how to save a code generated bitmap to a SQL Server DB? My aim is to generate a number of pie charts, save them to a db, then display them in a datalist. I am able to generate and display a pie chart OK (from data I provide), but what I can't do is find a way of saving it. This is the code I have to generate the image: objBitmap contains the generated pie ch...
    If/Then (with system.drawing.color) question (3 replies)
    ASPFriends.com 'ngfx-drawing' list
    Moved from [aspngfreeforall] to [ngfx drawing] by devin devinr@drone interactive.com With System.Drawing imported, I get an error trying this: If Label1.BackColor Color.Black Then Label1.ForeColor Color.White Else Label1.ForeColor Color.Black End if This is the error message: Operator " " is not defined for types System.Drawing.Color How is this defined programmatically?
    If/Then question with System.Drawing (3 replies)
    ASPFriends.com 'ngfx-drawing' list
    Moved from [aspngfreeforall] to [ngfx drawing] by Chris webmaster@aspmatrix.com With System.Drawing imported, I get an error trying this: If Label1.BackColor Color.Black Then Label1.ForeColor Color.White Else Label1.ForeColor Color.Black End if This is the error message: Operator " " is not defined for types System.Drawing.Color How is this defined programmatically?
    Article: Creating GIFs with transparent background (3 replies)
    ASPFriends.com 'ngfx-drawing' list
    Hi, I have just added a new GDI article on creating fixed palette/transparent GIF images with ASP.NET and System.Drawing. Any comments and/or suggested improvements would be welcome :O) http://www.aspalliance.com/chrisg/default.asp?article 142 Cheers Chris Chris Garrett http://www.chrisg.com
    system.drawing not found error - ASP.NET (2 replies)
    ASPFriends.com 'ngfx-drawing' list
    Moved from [aspngcommunity] to [ngfx drawing] by Cain Marco juggernaut@aspelite.com I just installed asp.net on a windows 2000 server. I would like to create a pie chart. I found a sample pie chart script on the 123aspx site... here's the URL: http://www.123aspx.com/redir.aspx?res 27396 This script seems very straightforward. I copied the createpiechart.aspx file to c:\inetpub\wwwroot and copied t...
    opinion Question - RE: Article: Creating GIFs with transparent background (3 replies, VIP)
    ASPFriends.com 'ngfx-drawing' list
    "Jolly good show." I have a question for any who have an opinion on the subject... It is worth while (or the trouble) to use the .NET drawing tools open an existing image for editing, render text and then save for dynamic buttons? Or, is life easier simply rendering a div layer with text on top of the exiting (base) image? I'm essentially building at portal like intranet which will need to have gr...
    SV: RE: Creating thumbnails with GDI+ (2 replies)
    ASPFriends.com 'ngfx-drawing' list
    Well Peter, C and C# are obviously kinda similar, but I'm pretty sure it's C . The weird chars (3D and 3D20) appeared when the question was moved to ngfx drawing. Anyway, Chris' articles are great and I have seen his Thumbnail example, but it is really the GetThumbnailImage() method I'm curious about. You don't happen to know any more examples of GDI and .Net (preferably in VB.Net)? Regards/H E4ls...
    Creating thumbnails with GDI+ (4 replies)
    ASPFriends.com 'ngfx-drawing' list
    Moved from [aspngfreeforall] to [ngfx drawing] by James Avery javery@deluxeeng.com In the VS.Net help, I have found a very interesting chapter re how to create thumbnails. Problem is, the code is obviously written in C or something and I have no clue how to translate this int VB.Net. Here is the code from the example: Image image(L"Compass.bmp"); Image* pThumbnail 3D image.GetThumbnailImage(100, 1...
    Image Control (2 replies)
    ASPFriends.com 'ngfx-drawing' list
    Copied from [aspngibuyspy] to [ngfx drawing] by Charles M. Carroll charlesmarkcarroll@yahoo.com Was just curious if anyone has made or knows where i could find an image control module that will do something similar to the following link.? I really need an asp version of this that will work IN IBS. http://bmc.gameswares.net/us/index.php?cat maps&id 7 Any help would be appreciated you can contact me...
    Text over Image (4 replies)
    ASPFriends.com 'ngfx-drawing' list
    Moved from [aspngfreeforall] to [ngfx drawing] by devin devinr@drone interactive.com Under ASP and Frontpage, I have developed my own banners etc. that where used for titles on pages. The FP2000 banner automatically created a text over the gif image. How can that be accomplished in .NET? I'm thinking about a user control that has the gif image and a text field which can be set but I can't find how...
    Never Answered: SVG to GIF (5 replies, VIP)
    ASPFriends.com 'ngfx-drawing' list
    Hi! All, I ask from many developer worldwide. But unfortunately nobody give the satisfactory reply. I wonder if we can convert the SVG into GIF. As we are capable to generate the SVG Graphics using XML in our magical Dot Net. I am looking for some component or any logic you guys/gals have in your mind? Take Care, Mudassir Obstacles don't have to stop you. If you run into a wall, don't turn around ...
    Unable to create Transparent background on Gif (7 replies)
    ASPFriends.com 'ngfx-drawing' list
    I cannot create a transparent background for a gif. Either setting the color to transparent or using the MakeTransparent method of the Bitmap class, the background always comes out black. Here's the code I am using, anyone have any ideas?? Dim context As System.Web.HttpContext System.Web.HttpContext.Current Dim strText As String Request.Params("Text") Dim imgComposite As System.Drawing.Bitmap Dim ...
    NOT ANSWERED: Is there a Memory Leak in the Bitmap object ? (4 replies)
    ASPFriends.com 'ngfx-drawing' list
    I seem to have a memory problem with the bitmap object. It is illustrated in the code below. The problem seems to be some sort of memory leak that eventually causes the aspnet wp.exe to kill itself with the error: aspnet wp.exe (PID: 2716) was recycled because memory consumption exceeded the 76 MB (60 percent of available RAM). Which loses all state data kept on this machine (nasty), this occurs r...
    Wierd memory leak problem with bitmap class (2 replies)
    ASPFriends.com 'ngfx-drawing' list
    I think I've discovered some sort of wierd problem with the bitmap object. It is illustrated in the code below. The problem seems to be some sort of memory leak that eventually causes the aspnet wp.exe to kill itself with the error: aspnet wp.exe (PID: 2716) was recycled because memory consumption exceeded the 76 MB (60 percent of available RAM). Which loses all state data kept on this machine (na...
    Resizing Images? (2 replies)
    ASPFriends.com 'ngfx-drawing' list
    Is there a good way to rezise images as they are uploaded to a web server? I have tried something to the nature of: Dim objgraphics As Graphics Dim ObjNewImage As Bitmap 3D New Bitmap("c:\files\somegraphic.jpg") objGraphics.drawimage(ObjNewImage, 10, 10, 300, 100) But have never gotten this to work. Am I on the right track? Is this a function (resizing images) that is suitable for this? The applic...
    Image Merging (3 replies)
    ASPFriends.com 'ngfx-drawing' list
    Hi! How can I merge two image and then on the runtime I convert them into one and then resize them? ? Regards, Mudassir Obstacles don't have to stop you. If you run into a wall, don't turn around and give up. Figure out how to climb it, go through it, or work around it. Michael Jordan
    tiling (5 replies)
    ASPFriends.com 'ngfx-drawing' list
    Hello, What would be the best way of tiling images into one larger image? Is there some kind of copypixels method available in .net? Thank you Chris.
    skewing an image (2 replies)
    ASPFriends.com 'ngfx-drawing' list
    Hi all, How can I go about in skewing an image? Is there some quad property for images in .net that controls the control points on the bounds of the image? THX Chris
    2 questions re size of Image (4 replies)
    ASPFriends.com 'ngfx-drawing' list
    Moved from [aspngfreeforall] to [ngfx drawing] by Charles M. Carroll charlesmarkcarroll@yahoo.com To short questions (VB.Net): 1. How do I determine the size of an image? 2. How can I convert the pixelvalues to millimeters being as exact as possible? Thanks in advance!! Regards/H E4lsningar Andr E9 Colbi F6rnsen 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D...
    Colors (2 replies, VIP)
    ASPFriends.com 'ngfx-drawing' list
    Moved from [aspngfreeforall] to [ngfx drawing] by Charles M. Carroll charlesmarkcarroll@yahoo.com Hi all, How do I use a Hex value "#EEEEEE" (for example) in code when seting a Color. I know how to use color.blue etc. I was just wondering if theres a method to convert the Hex value something like system.drawing.HexToColor("#EEEEEE") TIA Scott
    Screen Capture from a HTTPScreen Scrape (5 replies, VIP)
    ASPFriends.com 'ngfx-drawing' list
    Hi, I want to be able to scrape a web page and then select an area of the page and put it into a Gif/Jpeg and then finally output this to the browser. The screen scrape is not the prob, can you put the result of the scrape into a manipulatable graphics style object? Anybody have any clues or info on how to do this? Thanks Ben Williams
    Anyone know about GDI+ Palettes in .NET ..? (2 replies)
    ASPFriends.com 'ngfx-drawing' list
    Hi all, I'm a bit stuck with setting indexed bitmap palettes and wonder if anyone has any ideas. Here is my VB.NET code .. Response.Write(myBitmap.Palette.Entries(16).ToString() myBitmap.Palette.Entries(16) Color.FromARGB(0,255,255,200) Response.Write(myBitmap.Palette.Entries(16).ToString() When I try this the palette entry 16 colour is the same before and after, setting the value doesn't make any...
    Desktop or web (8 replies)
    ASPFriends.com 'ngfx-drawing' list
    Hi all, Just a quick question .. How many of you guys are interested in using GDI for web stuff and how many only use it for the desktop? Cheers Chris CHECK OUT MY NEW GDI ARTICLES http://www.RealWorldASP.net Don't miss the news! Sign up for ASP/.NET Newsletter: http://www.aspalliance.com/chrisg/subscribe.asp Discuss techy stuff with nice people http://www.aspfriends.com/aspfriends/fanclub chrisga...
    transparent gif? (6 replies)
    ASPFriends.com 'ngfx-drawing' list
    My apologies if this is a FAQ... I've attached code below for a non working but complete attempt at generating a transparent gif with System.Drawing. You can even run it here: http://unexpresso.com:12/transparent.aspx You'll see that I set the background color to black and try to make that transparent. However, the generated gif image shows the black background. What I expect to see is the silver ...
    Image Data Processing (4 replies)
    ASPFriends.com 'ngfx-drawing' list
    Hi! All, I have a query I hope there should be solution anywhere... I am creating an application in ASP.NET for School on the subject of Science it contain a Image of Human Body, and ask Queries from the student on the right hand side frame, and when users reply is incorrect, I want that , Image automatically create the some sort of Arrow that indicate and tell the User that the Organ is located h...
    Bitmap object leaves file locked in ASP.NET (3 replies)
    ASPFriends.com 'ngfx-drawing' list
    Copied from [aspngfreeforall] to [ngfx drawing] by Charles M. Carroll charlesmarkcarroll@yahoo.com Sorry for the repost I forgot the subject... I'm using Release candidate 0... so this problem may already be resolved The following code illustrates the problem... protected System.Web.UI.WebControls.Image Image1; System.Drawing.Bitmap myBitmap; private void Page Load(object sender, System.EventArgs ...
    Images generation (5 replies, VIP)
    ASPFriends.com 'ngfx-drawing' list
    Hi there. Following the late questions about creating images on the fly, I've come up with this thing. I wanted to create bitmaps from scratch and manipulate them without loading them from file; Chris trick of creating a graphics directly from a bitmap, dim b as New system.drawing.bitmap(w, h, pixelformat.Format16bppRgb555) dim g as graphics graphics.fromimage(b) doesn't work in C#. Instead, I use...
    Color processing article (4 replies)
    ASPFriends.com 'ngfx-drawing' list
    Hi, Just to let you know, I have just added a new GDI /System.Drawing article on my ASPAlliance column. Please let me know what you think about it. Using System.Drawing pixel level functions for image colour processing http://www.aspalliance.com/chrisg/default.asp?article 118 Cheers Chris
    Vertical Text (2 replies)
    ASPFriends.com 'ngfx-drawing' list
    Anyone got a routine to do vertical text within another image yet? I'm guessing you can do it as a separate image and place it over the main image, any other methods? Thanks, Ryan
    image generator (23 replies)
    ASPFriends.com 'ngfx-drawing' list
    Moved from [aspngarchitecture] to [ngfx drawing] by Charles M. Carroll charlesmarkcarroll@yahoo.com I want to create images within a page and have them show up within the page. So my image is a control and I'm setting properties of that control. So, what methods can I use to output the image? I assume I'll need to use a img / tag linked to an output page but how should I get the image data to that...
    Help: How to draw a fixed size grid? (3 replies)
    ASPFriends.com 'ngfx-drawing' list
    Hi, I have a Bitmap object and a Graphics object created from the Bitmap object. I need to draw a grid with width 15cm, height 10 cm and 1cm between two lines. The size of the grid needs to be independent of screen sizes and resolutions. How to do it? Any help would be appreciated. Wenfeng
    best quality text rendering? (11 replies, VIP)
    ASPFriends.com 'ngfx-drawing' list
    i just wrote ths neat o command line image generation tool for creating graphics for my ASP.NET app, and i'm trying to get the best quality text out of it. (btw, i'd be happy to give anybody the C# project, if they're interested.) the docs inside VS.NET are pretty slim, and i just want to make sure i'm doing the right things to get the best quality anti aliased text out. if anybody knows GDI well,...
    SV: RE: How to resize imgs w System.Drawing (4 replies)
    ASPFriends.com 'ngfx-drawing' list
    And how will I change the size? Regards/H E4lsningar Andr E9 Colbi F6rnsen 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D Sonnenburg Communications Bergsgatan 3, SE 211 54 Malm F6 Sweden Tel.: 46 (0)40 97 78 80 Fax.: 46 (0)40 97 78 80 Mob.: 46 (0)708 97 78 79 Mail: colbiornsen@sonnenburg.se Web.: www.sonnenburg.se 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D...
    How to resize imgs w System.Drawing (3 replies, VIP)
    ASPFriends.com 'ngfx-drawing' list
    I wonder if and how it's possible to resize an img (gif or jpg) on the fly using System.Drawing. When I say resizing, I mean both pixelsize AND filesize. Regards/H E4lsningar Andr E9 Colbi F6rnsen 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D Sonnenburg Communications Bergsgatan 3, SE 211 54 Malm F6 Sweden Tel.: 46 (0)40 97 78 80 Fax.: 46 (0)40 97 ...
    Drawing resources (3 replies, VIP)
    ASPFriends.com 'ngfx-drawing' list
    Attention everyone! I am updating the signup/info page for this list at http://aspfriends.com/aspfriends/ngfx drawing.asp and I'd like your input. Please feel free to send me the names and/or links of any of the following on this list's topic: Books Web articles Other developer lists These will be reviewed and, if approved, placed under the appropriate tab on the list signup page. Thanks in advanc...
    Obtain the color of a point (2 replies)
    ASPFriends.com 'ngfx-drawing' list
    Copied from [winforms vb] to [ngfx drawing] by Charles M. Carroll darthcarroll@asplists.com This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. NextPart 001 01C18F1B.849B1710 Content Type: text/plain Greetings, In VB6, pictureboxes had the capability to determine the color of a pixel that a user clicked on via Pict...
    MeasureString method (8 replies)
    ASPFriends.com 'ngfx-drawing' list
    Hi all, I'm trying to get the actual size of a string using a specific font. To acomplish this task I use the Graphics.MeasureString that returns a Size object. The problem is that the Size object returned is bigger that the string, rather than the exact string size. And this difference isn't the same if I change the font facename. Does anybody is having the same kind of problem? Cheers, xico
    Best way to draw a filled rectangle with border (3 replies)
    ASPFriends.com 'ngfx-drawing' list
    Hi, What's the best way to draw a filled rectangle with border? Thanks, xico
    Do you need to dispose Brush objects? (4 replies)
    ASPFriends.com 'ngfx-drawing' list
    Copied from [winforms cs] to [ngfx drawing] by darthcarroll@asplists.com Online help says: "It is important that you create a graphics resource only when you need it and release it soon as you are finished using it. If you create a type that implements the IDisposable interface, call its Dispose method when you are finished with it in order to free resources." The help goes on to use Brush as an e...
    Unwanted dithered colors saving image file. (2 replies, VIP)
    ASPFriends.com 'ngfx-drawing' list
    I'm creating a graph that looks fine when saved to my Response.OutputStream (or assigned to the Text property of a Windows Forms PictureBox), but the background color gets dithered when saved to an image file. The background is filled with a solid brush (Color.Gold). Do I need to specify more parameters when I save the image file? // this displays fine on the page Response.ContentType "image/jpeg"...
    Best approach (5 replies)
    ASPFriends.com 'ngfx-drawing' list
    Copied from [winforms cs] to [ngfx drawing] by darthcarroll@asplists.com Greetings, I know there is a more elegant way to handle this than using a global reference, so I'm asking the experts. Assume I have a control "Map" that inherits System.Windows.Forms.PictureBox. It contains a 2 dimensional array of "Hex" objects. These Hex objects overlay the Map in a traditional hex grid. Each Hex knows whe...
    Tiff Manipulation in ASP.NET/VB.NET (3 replies, VIP)
    ASPFriends.com 'ngfx-drawing' list
    Moved from [aspngvs] to [ngfx drawing] by darthcarroll@asplists.com I am designing an application which will take the name of an existing TIFF file and allow the user to view a listing of the various pages contained in the TIFF, as well as extract individual pages from the TIFF and save them as separate files. I am looking for information on manipulating TIFF's in the .net framework using vb.net a...
    Getting Absolute Path in Project (2 replies, VIP)
    ASPFriends.com 'ngfx-drawing' list
    Copied from [aspngcontrolscs] to [ngfx drawing] by darthcarroll@asplists.com I am creating a server control that internally as part of a bunch of other HTML renders an image. At design time, after the user sets an imageurl I want to go out and retrieve the dimensions of the image to properly draw the control in the designer. I can't figure out how to take the relative path at design time and conve...
    Visit the archive for messages from this site.
  • October 2001 (5 items)
  • November 2001 (2 items)
  • January 2002 (11 items)
  • February 2002 (7 items)
  • March 2002 (8 items)
  • April 2002 (3 items)
  • May 2002 (1 item)
  • June 2002 (5 items)
  • July 2002 (1 item)
  • August 2002 (2 items)
  • August 2004 (1 item)
    Ad


    Need Dot Net Interview Questions?
    Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
    .Net Projects
    Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
    Free .net Help
    Commission ExamGuru, Inc. and his team for your next bespoke software project
    FogBUGZ
    The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
    Awesome Tools
    If you don't know about these, you're missing out... IT Certification Questions
    IT Interview Questions
    Free Oracle 10g Training
    MCSE Boortcamp
    Cisco Study Guides
    Cheap Study Guides
    Exact Questions
    Dot Net Interview Questions
    Oracle OCP
    Cheap Travel
    Designer Perfumes - Wholesale Prices
    Free Programming Tutorials
     
    ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
     Copyright © ExamGuru, Inc. 2001-2006
    Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification