Page 1 of 1

Simple graphical editor in Alaska

Posted: Fri Oct 17, 2014 8:29 am
by Eugene Lutsenko
Somewhere I saw a simple graphical editor similar to Paint, made ​​in Alaska. And now could not find it. Tell me, please, where to find the source.

Re: Simple graphical editor in Alaska

Posted: Fri Oct 17, 2014 9:23 am
by Auge_Ohr
Eugene Lutsenko wrote:Somewhere I saw a simple graphical editor similar to Paint, made ​​in Alaska. And now could not find it. Tell me, please, where to find the source.
what do you mean ? what you want to do with it ?

Re: Simple graphical editor in Alaska

Posted: Fri Oct 17, 2014 9:15 pm
by Eugene Lutsenko
I would like to learn from the example of his source code how to work with graphics. I need to be able to read the coordinates of the mouse after clicking the left mouse button in the graphic. Yet it would be desirable to be able to read the pixel values ​​for the coordinates in a graphic object to analyze it, for example to draw contours do fill and the like.

Re: Simple graphical editor in Alaska

Posted: Mon Oct 20, 2014 10:11 am
by reganc
Eugene Lutsenko wrote:I would like to learn from the example of his source code how to work with graphics. I need to be able to read the coordinates of the mouse after clicking the left mouse button in the graphic. Yet it would be desirable to be able to read the pixel values ​​for the coordinates in a graphic object to analyze it, for example to draw contours do fill and the like.
Have a look in Alaska newsgroup 'public.xbase++.gui' at a message Thread started on 28/06/2005 posted by Greg Doran named 'Howto: Rotate Image Files BMPManip Version 3.0 [key: bitmap]'. There is a zip attached to the 1st message with a program that shows how to do some things.

Maybe it will help?

Re: Simple graphical editor in Alaska

Posted: Mon Oct 20, 2014 10:26 am
by Auge_Ohr
hi,

as i understand Eugene want to "edit" Bitmap which was "saved" to Harddisk.

while Xbase++ work with Presspace and Windows API work with hDC you have to use oPS:lockHDC() and oPS:UnlockHDC() methods of the XbpPresSpace object (not documented in 1.9.x ), which give access to an initialized Windows device context, a prerequisite for using native Windows graphics functions.

Re: Simple graphical editor in Alaska

Posted: Mon Oct 20, 2014 12:46 pm
by Eugene Lutsenko
I would like to make a program that would be specially processed scanned images. Thus it is necessary to set the mouse coordinates of the two singular points, and the rest of the program should do it myself. To do this, she must find the outline of the image on the brightness and color contrast with the background, and then to determine the distance from the first of the given points to the contour points and to put these distances in the database. Each scan objects must conform to its own record in the database. The second point is to divide the circuit into two parts, roughly on the right and left. Such is the problem.

Is it possible to use in a program written in Alaska, these graphics functions from libraries? How does it look? Are there similar functions in Alaska?
http://msdn.microsoft.com/en-us/library ... s.85).aspx

Re: Simple graphical editor in Alaska

Posted: Mon Oct 20, 2014 8:57 pm
by Eugene Lutsenko
reganc wrote:
Eugene Lutsenko wrote:I would like to learn from the example of his source code how to work with graphics. I need to be able to read the coordinates of the mouse after clicking the left mouse button in the graphic. Yet it would be desirable to be able to read the pixel values ​​for the coordinates in a graphic object to analyze it, for example to draw contours do fill and the like.
Have a look in Alaska newsgroup 'public.xbase++.gui' at a message Thread started on 28/06/2005 posted by Greg Doran named 'Howto: Rotate Image Files BMPManip Version 3.0 [key: bitmap]'. There is a zip attached to the 1st message with a program that shows how to do some things.

Maybe it will help?
Thank you! Be sure to take a look. And you could not give a direct link?
http://www.alaska-software.com/download ... ection=350
http://news.alaska-software.com/