predseda
Members-
Posts
21 -
Joined
-
Last visited
Personal Information
-
Visual Studio .NET Version
VS.NET EA 2003
-
.NET Preferred Language
VB.NET
predseda's Achievements
Newbie (1/14)
0
Reputation
-
Hamburger1984, By the way...What did you mean with this? ...will lead anywhere, since you don't read AND understand.. Ok man, I have no experience with C#, but I am VB.Net developer (or lowly I want to be), so don't think I am fool... And next, your attachment is in C#, so bye-bye :) , I can help you only with VB.Net. ( I think you know VB.Net syntax or not? ) Tutorial Pascal's Triangle is written in VB.Net too. predseda
-
1. Ok, mozilla is GNU licence based, It is also not resounds typical GNU ideas like Vote for Microsoft 100% free!!! etc... And there is is no fee for updates and technical support (maybe because of donations) and this is rarity. I think it is a big shame for any software to use GNU GPL. 2. ...use Get/SetPixel BUT also uses LockBits and (fast) unsafe code to access Pixels.. Yes, Lockbits - there shall be the key, now I am using another, fast method, but this looks better (I will do some speed test and I will tell you.). Using Lockbits looks easy, I will try it tomorrow mornig (I am in the same time zone like you) so I will tell you. 3. third: you haven't proven anything with your snippet of code.. see attachment and explain what good a bitmap is if you can't manipulate it (draw on it).. furthermore you can create a (for example) 1bpp-Bitmap but you can't save it as 1bpp.. too bad... I will send you tutorial, how to manipulate. How to save... hmmm. I am solving this now. ( I asked PlausiblyPamp how to with PNGs on page 1) I have idea how, I am sure that it is posibble, evently to save in CMYK mode (of course only formats wich support CMYK like jpeg). When I will know how-to I will post it. ...and finally: let's stop this discussion - as I said it doesn't lead anywhere good... Hehehe :) Really? Wait for tutorial and you will see if no. Or better idea: Download it from this forum - search in graphics - Pascal's Triangle. Vielen dank fur dein zeit. Ich habe lernt deutsch funf jahre, aber jetzt Ich weiss nur einige worter. ;) predseda
-
Dim MyBitMap as Bitmap MyBitMap = New Bitmap(Width, Height, Imaging.PixelFormat.Format32bppRgb) Vivat Microsoft .Net ;) I have seen that tutorials time ago, but I don't know why I thought they are using GetPixel method. The hell! It looks good. And It looks that there is no Bitmap to Integer Array converting! But I have minimum knowledge about C#... So I will try to translate it. Parts of Mozilla are GNU-GPL ? Maybe, I am not sure, but I have never seen gnu craps (neither word GNU) on mozilla.org predseda
-
Hamburger1984, I like OpenSource idea for example Mozilla project, but not GNU. I don't see a problem with using such library and giving credit to the people that created it, but that's my opinion.. - Yes me too, but not GNU. I don't agree with GNU GPL backgroung. ...and save images than using the Framework (which isn't capable to do real converting at all - only 24bpp.. happy birthday!! ;)) 24bpp?? wake up man, it suppots up to 64bpp = 16R + 16G +16B + 16A But I think 24bit = over 16 milion colors is adequate accuracy. Why to use third-party componet when I can use built-in function? predseda
-
Dear Hamburger1984, I will NEVER import to my application something, what is protected by GNU GPL licence - product of Free Software Foundation. FSF with some other organizations are sects based on communistic ideology wich is recuiting young developers for non-payed work. Best example is GNU/Linux - developers are creating it for free, but linux distribution management advantages from technical support. Uncrowned (or crowned?) king of this all is Richard Stallman - man, wich resonds expressly comunistic idea - intellectulal work never can be payed as manual work. You may think - it's free, so I can use it and GNU ideology never mind me. But I am from country wich was before second world war country with sewenth world's best economic and after 40 years of communism we are now at 60th position. So I am looking at GNU bit another. If you would like to use FreeImage-Library you must paste this in about box: This software uses the FreeImage open source image library. See http://freeimage.sourceforge.net for details. FreeImage is used under the (GNU GPL or FIPL), version (licence version). But I departed out of problem. So... back to programming: Time ago was posted in forum Graphics question by ThePentiumGuy, how to draw image from array to screen - but fast. PlausiblyDamp posted answer - shorcout to PascalsTriangle tutoriual. In that tutorial is a method how to covert Integer Array to Bitmap object. So must exists way to convert Bitmap to Integer Array i think. But how? Any idea? For better understand: 1. Load image from file to bitmap object - No problem 2. Convert Bitmap Object to Integer array - how??? 3. Edit the image = edit the array - No problem 4. Save changed image / draw on scren - No problem So how to convert bitmap object to Integer Array - using .Net framework. predseda
-
By the way... Any idea how to save bitmap as PNG with option to set image quality ? Thanks.
-
:eek: Really? The hell, if this is true then I am the happiest developer worldwide! ...that also means that I had downloaded bad PNG format specifications time ago. So... PNG! :cool: Ok, but the first queston was how to extract data from image file... Any idea?
-
Hmm, .png is good but there is a one problem. PNG uses similar bitmap data comprimation like GIF. It means that in all PNG file can be used only 256 different colors of 24bit palette (16,7 milion colors). Theese colors are defined in the head of file. So if you are working with internet bitmaps it is good to use PNG (btw. Mozilla supports Alpha channel) , but if you are working with photos or professional images it is a big restriction. If you would like to edit images for professional use, I thing you ought to study PDF file structure. :-) OK, I know that it looks difficulty but its better like create new file format. You can downlad pdf SDK form adobe.com, but it's pay-for-use.
-
Get documentation. Buy or download (probably from KaZaA) book Mastering VB.Net Author : Evangelos Petroutsos - Chapter 15 - Printing. Visual Basic .Net Resource Kit 2003 ( by Microsoft - http://www.microsoft.com - free download ) also contains this chapter.
-
1. Study English 2. Study VB.NET If your home language is Czech or Slovak you can ask me in this languages if you need help & you are not english speaking, but study english - 99,9% of all programming resources are in english.
-
Thanks a lot PlausiblyDamp, Be sure that I am creating user friendly interface :) . Thanks once more. predseda
-
Hello all, I have a PictureBox and at Click Event I want to show ContextMenu above. It's simple to do set property PictureBox1.ContextMenu=ContextMenu1 but it works only with right mouse button click, how to do this with left click? Thanks.
-
Yes...! This is exactly what I need. Thanks a lot Nerseus. predseda
-
Thanks a lot dynamic_sysop, It works, (with little change): RichTextBox1.SelectedText = "the text to add to the richtextbox" predseda
-
In VB6 was possible to paste some text to the end of string contained in RichTextBox control by RichTextBox.Seltext. How to do this in .Net? RichTextBox &= "text" changes all contens of control - it works slow.