
philprice
Avatar/Signature-
Posts
116 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by philprice
-
This happens as when the form is asked to redraw it's self - it calls its OnPaint method (which i am assuming you have not handeled) - therefore it is cleared. What you need to do is capture the Paint event of the control you are drawing the imagine onto - and draw your image onto e.Graphics (where e is the event object captured in the event - you'll see). Everything Invalidate is called (you can do this manually via Control.Invalidate()) the Paint event is called where your code to plot the image should reside. Hope this helps
-
Well what you are looking to do? TIFF is a bitmap type image (each pixel is held with a color value in the file in some format) where as a SVG is Vector based (image is stored as a number of points, lines and rules to describe the image). It is possible (i think) to embed entire images into SVG files - but i really see to see why one would want to do that. If you want to convert the TIFF to a real vetor you are in for alot of work, specifically edge detection, color blocking and building up sections of an image using the System.Drawing.Region (or Lines or Curves or whatever really) type. Take a look at SVG NET at http://www.riskcare.net/SvgNet/ Specifically the GDI Bridge that comes with it - it alows System.Drawing.Graphics style drawing onto a SVG Graphics Context then exporting as XML (how svg is held). Hope this helps
-
It don't think it's possible has part of Visual Studio. But try looking on www.download.com for "undelete" software or similar and that /might/ help, as when a file is deleted it's file nodes are marked as free on the file structure of the harddisk and the data is not actually cleared from the harddrive (unless you use secure deleting software). Also have you tried looking in your recycle bin?
-
Hi there, I'm trying to impliment my own Ink (Tablet PC SDK) to Shape recognition software (I don't want to use inShape it's too limiting). My plan was to normalize ink'ed shaped (via taking the nodes) to a 25 by 25 grid, (2500 inputs) and then having 1 hidden layer and X outputs (the number of total shapes avaliable to the system), but i'm having problems understanding what "function" to put at the nodes and to make the system accept an error rate (nearest match) My plan was to ask the user to draw 3 shapes of the same thing then assign a name to that shape (e.g. rectangle, or computer) - then create 300 variations of each shape (my shifting the point positions by, small, random amounts) to train the network. Is this the right idea and has any one got any suggestions - links or example code I could use to learn from. Cheers
-
High im making a visio esq program for a personal project (getting myself back into programming really). When using Graphics.DrawString() you need to specify and font and pt, if im correct, how can I make the text "scaleable" by example giving it a float value or a percentage size, so when the graphics context is reshaped everything looks okay? Cheers
-
Its fine to use the preview API, but im looking for persistant data, as I dont want to generate a load of thumbnails everytime i load the program, it'll be a huge strain on CPU time thats not really needed (i want to display icons of object types), so thats why i want to put multiple data types in one file....
-
Hi there, how do I go about making my own custom file format? Im working on a Visio-esq project and I want to be able to save "objects" into files (elements that can be rendered on the display context, i.e. Squares, arrows etc) I'm looking to save some point data and various other bits and bobs into a file along with a jpeg (or bitmap) preview of that object. The same goes for "scene" objects, I want to serialize the scene (not a problem) - but also have previews and other data in the file, what is the best method for doing this?
-
My project just did this to me, "The variable 'Controls' is either undeclared or was never assigned about 100 times in the error list, i cant figure out why, along with a load of other all repeated, and i didnt do anything, any ideas what wrong?
-
I got my acedemic version for free, thank you microsoft :)
-
Hi there, Basically we have an application that has 5 webservices created on startup, i know it sounds a lot but its the way the program needs to be made in the requirements (its for PocketPC, the whole point is spreading out the CPU load to "a server"). Anyway I was wondering how you would create a system where each objects creation is threaded off (and the SOAP stuff does its thing), and is it actually worth it? Just to cut the loading time as its, well - rather nasty to say the least. So if anyone could point me in the right direction that would be cool. NB all the objects are held in "frmMain" and its written in C# Peace
-
Storing data, but not in access DB
philprice replied to philprice's topic in Database / XML / Reporting
Ive not written anything, i'm looking for the best solution. I used to use access a whole lot but it's kinda of a big reliance on a nasty mdb file. For some reason i seem to be inheriently wary of datasets, i cant really remeber why, but there must be some reason.... -
Ive got a bunch oh lovely mac os x style ico's for windows XP, any way i can get these to display in full color and with varying transpareny in the .NET toolbar control, or is there any replacement controls?
-
The topic says it all really, how do you do this? I know its something do with OwnerDraw or so... Also how would I go about drawing a kind of percentage box that as it fills up changes colour? But still says words on it as well...
-
Storing data, but not in access DB
philprice replied to philprice's topic in Database / XML / Reporting
Groovy. I'll give it a go. What about Serialzation of classes into XML using the XML serialzer, I would prefer if I had EVERYTHING i wanted as one class with collections of sub classes, then just import/export the XML, for example I'll need groups of "albums" or "collections of songs", but many of these groups in one place.. -
Hi there, I've allways stored data in Access DBs for my applications, because its easy and fast, but I dont think its the PROPER way to do it. What other options are there out there supported by .NET that will work "across the board". I'm thinking XML but how would you read write to it etc? The application im looking to write is to create simple group of MP3s on my harddrive and being able to copy them to my MP3 device, so obviously I want to retain my groups of mp3s after I've made them..
-
Okay I've looked in msdn, and it suggests either making an installer (not going to be able to run this on the remote server), or doing "Copy Project" I've done the copy project option and FTPd it to my webspace (webmatrixhost). But i just get "Custom Errors", i've tried turning them off in the web.config but it doesnt seem to make any difference,so i cant tell whats wrong. so has anyone got any ideas? Or any guides? Peace.
-
*sigh* just look at the code and figure out the bits you want. Look at the methods that interet you, copy them into your own classes and alter them if needed.
-
Advanced Regular Expressions problem
philprice replied to NiallWaller's topic in Regular Expressions
I Would do this Firstly make the regex opject, global, multiline and ignore case, then do something like this expression <a.*?>(.+?)</a> That will pick out blocks the ? on the .+ means "non greedy" so it wont try and be clever and match upto the last instance of a </a>, im not sure how the regex object in .NET works, but it should pick up stuff off one line, if not check for options you might want to use. To be honnest its really not hard, you've made it sound worse than it is. Oh and dont use * to frequently, it will match nothing, which is usually not what you want, use + instead. -
Topic says it all really, when i am debugging my software its quite a responsive. When i create a standalone Release Build, and run it (without the IDE), its quite slow, form elements take some time to appear, not very long, but noticable... what am i doing wrong?
-
Hi all, Ive got VS.NET 2003, final beta, I want to build my program for .NET 1.0 just for easyness sake for my users, how do I do this? Also what is the best way to distribute the EXE create, distribute the Release one? Or what, never done this before. Peace
-
Hey there, Ive been messing with SOAPBlogger and i've seen they have made 3 data/structure classes public somehome, so you can create them from the webservice direct, how do you do this?
-
This is weird, I set my app to compile a release for .NET framework 1.0 and 1.1, it runs fine on m computer with VS.NET 2003, the ones in uni have 2002, i run the exe and it cant find the right framework, how can i build exes that will work across the board (these are very simple applications)
-
What is there instead then?
-
Is it because your deploying a debug build? dont know just guessing.
-
use GROUP BY at the end, peace.