Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

akirilov

@akirilov
About
Posts
57
Topics
14
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Saving icon to PNG file (GDI+)?
    A akirilov

    Could share direct link? I'm no a member of these groups?

    C / C++ / MFC graphics winforms tutorial question

  • Saving icon to PNG file (GDI+)?
    A akirilov

    Is my question so hard? Nobody had similar experience? :((

    C / C++ / MFC graphics winforms tutorial question

  • Loading XML data into TlistBox [modified]
    A akirilov

    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)

    Delphi question delphi xml

  • Saving icon to PNG file (GDI+)?
    A akirilov

    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.

    C / C++ / MFC graphics winforms tutorial question

  • BITMAPINFO + Colour video
    A akirilov

    I 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.

    Graphics help com business tools question

  • draw a line inside a circle
    A akirilov

    Btw, 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.

    Graphics graphics performance question

  • draw a line inside a circle
    A akirilov

    IF: 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

    Graphics graphics performance question

  • Looking for Interbase 6.0 (download, install, client)
    A akirilov

    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)

    Delphi question

  • GDI+: How to draw an icon
    A akirilov

    Hi 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!

    C / C++ / MFC c++ winforms graphics tutorial

  • GDI+: How to draw an icon
    A akirilov

    Hi 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!

    Graphics c++ winforms graphics tutorial

  • Question about classes in C++
    A akirilov

    :laugh: Well I tried A.Paint() before I posted here ;) so, A::Paint() is working fine.

    C / C++ / MFC

  • Question about classes in C++
    A akirilov

    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!!!

    C / C++ / MFC

  • Question about classes in C++
    A akirilov

    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

    C / C++ / MFC

  • Create DIB from a HBITMAP
    A akirilov

    Do 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.

    C / C++ / MFC question graphics xml

  • Question about "stdafx.h"
    A akirilov

    Thank you, that was very helpful!!!

    C / C++ / MFC c++ question tools help learning

  • Question about "stdafx.h"
    A akirilov

    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...

    C / C++ / MFC c++ question tools help learning

  • Question about "stdafx.h"
    A akirilov

    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.

    C / C++ / MFC c++ question tools help learning

  • ANSI versions for Win API functions
    A akirilov

    Thank you. I expected this, but because ANSI function were declared I hoped that they are implemented.

    Mobile question c++ visual-studio json tutorial

  • ANSI versions for Win API functions
    A akirilov

    Hi 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.

    Mobile question c++ visual-studio json tutorial

  • some guidence needed
    A akirilov

    Try DirectX. I think in DirectMedia or DirectShow there are tools to capture, play ...

    C / C++ / MFC question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups