Could share direct link? I'm no a member of these groups?
akirilov
Posts
-
Saving icon to PNG file (GDI+)? -
Saving icon to PNG file (GDI+)?Is my question so hard? Nobody had similar experience? :((
-
Loading XML data into TlistBox [modified]You can load the .xml file in some of the xml components for Delphi, like TXMLDocument. But it is SLOW, takes a LOT of memory and worst of all - have some strange behavior - after accessing a node you have to manually free it. Not to mention that you have to traverse trough nodes until you reach desired branch. If you need a simple job - like taking channels name from xml, I would suggest to open it as a txt file (you can open it trough TStringList for example, and use Text property for direct access) and manually parse it (use PosEx, to incrementally search for node names, and then Copy to extract desired names)
-
Saving icon to PNG file (GDI+)?Hi guys, I'm trying to make a routine that save an icon (HICON) to png file with GDI+
Bitmap* bmp = new Bitmap(icon);
GetEncoderClsid(L"image/png", &encoderClsid);
bmp->Save(L"xxx.png", &encoderClsid, NULL);So far so good. But when I open the png ... it is not transluctant (semi transparent). Any ideas why??? And I found that GDI+ has A LOT of problems with icons :( P.S. If you have another suggestion how to do this, please share fragment of code.
-
BITMAPINFO + Colour videoI would suggest: bm->bmiHeader.biHeight = -144; instead of bm->bmiHeader.biHeight = 144; When height is positive, the bitmap is bottom-up oriented. In 99% our bitmap sources are up-bottom oriented.
-
draw a line inside a circleBtw, if you want to implement as it was on the picture, I would highly recommend using a circle, because otherwise the length of the hands will vary, which is not realistic.
-
draw a line inside a circleIF: Xo, Yo - the center of the ellipse Rx, Ry - the two radius' alpha - is the angle in radians!!! Calculate: X = Xo + Rx*cos(alpha); Y = Yo + Ry*sin(alpha); Draw: a line from (Xo,Yo) to (X,Y) *In case you have a circle, then Rx=Ry = R of circle
-
Looking for Interbase 6.0 (download, install, client)I would highly recommend using FireBird 1.5.x instead of Interbase 6.0. It is 100% compatible but is better in every aspect. (not to mention that FireBird is still in development, while Internase 6.0 was canceled long time ago)
-
GDI+: How to draw an iconHi guys, I'm not sure is this the right place to ask, but I know that you are the right people :) I want to draw an icon from an ico file on the screen (lets say main form). Can you show me a fragment of code (C++ preferably, GDI+) that will load an icon file and display the second sub-icon from it (in the .ico I have one icon in three dimensions. I want to see the second dimension). Thanks in advance!
-
GDI+: How to draw an iconHi guys, I want to draw an icon from an icon file on the screen (lets say main form). Can you show me a fragment of code (C++ preferably) that will load an icon file and display the second sub-icon from it (in the .ico I have one icon in three dimensions. I want to see the second dimension). Thanks in advance!
-
Question about classes in C++:laugh: Well I tried A.Paint() before I posted here ;) so, A::Paint() is working fine.
-
Question about classes in C++Thank you guys, the answer of all of you was very helpful. I tried with A.Paint(), but it didn't work. I'm going to use __super, thus It will not depend of the base class name. THANK YOU, again!!!
-
Question about classes in C++Hi guys, I have 2 classes:
class A{
virtual void Paint() {...}
}class B: public A{
virtual void Paint() {...}
}Is it possible and what I have to do, so in B.Paint to invoke A.Paint and then some other code
-
Create DIB from a HBITMAPDo you think writing the DIB to a xml file and reading back and displaying it will actually display it?
Well that is the tricky part - it is important to choose what kind of DIB you want, so you can read it latter on Mac: - choose how many colors - by default DIB is bottom-up. If Mac can't read it put negative height in DIB - if Mac can read .bmp, consider writing the file in .bmp rather .xml (this will greatly reduce file size and writing routines to read .xml) Good luck. -
Question about "stdafx.h"Thank you, that was very helpful!!!
-
Question about "stdafx.h"Because it's the key to using the precompiled header (.pch) file.
So I have to include "stdafx.h" in every .cpp that I'm using? Than probably I have to start reading about precompiled header (.pch) file... -
Question about "stdafx.h"Hi guys, I downloaded a zip utility source code. When I used it in my program I received:
..\Zip_Utils\zip.cpp(2992) : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
I have the source. Of course, I can easily add '#include "stdafx.h"', but that is not the point. The question is: what is so special of "stdafx.h" that require including it in every .cpp that I add??? P.S. I don't know does it matter, but I'm writing in VS2005 in C++ for Windows Mobile 5.0, native, without STL, WTL, MFC.
-
ANSI versions for Win API functionsThank you. I expected this, but because ANSI function were declared I hoped that they are implemented.
-
ANSI versions for Win API functionsHi guys, Does somebody how can I use ANSI versions of WinAPI? For example: ExtTextOutA (not ExtTextOutW) Well I tried, compiling was ok, but the linker said that can't find ExtTextOutA. P.S. Windows Mobile 5.0 native, VS 2005 SP1.
-
some guidence neededTry DirectX. I think in DirectMedia or DirectShow there are tools to capture, play ...