I have tried,
...
Image screen("screenshot:"); It's work.
...
but if I save the screen
....
screen.write("screen.jpg"); I become a error
...
how can i save a screenshot?
Search found 7 matches
- 2014-04-23T04:55:20-07:00
- Forum: Magick++
- Topic: How to create a screenshot of the currently active window ?
- Replies: 7
- Views: 59867
- 2014-04-23T00:51:42-07:00
- Forum: Magick++
- Topic: How to create a screenshot of the currently active window ?
- Replies: 7
- Views: 59867
Re: How to create a screenshot of the currently active windo
How can I create a screenshot of active window in windows 7 ? I can't find a "x window Id", xwininfo is just for Linux.
- 2014-03-26T01:56:09-07:00
- Forum: Magick++
- Topic: Compare pictures
- Replies: 9
- Views: 26519
Re: Compare pictures
Or how can I take a screen shot from open window with magick++. I have used GDIPlus library for this, but I can not save the picture in Magick::Image format, here is my code #include "stdafx.h" #include <windows.h> #include <stdio.h> #include <iostream> #include <fstream> #include <gdiplus.h> using ...
- 2014-03-25T03:14:11-07:00
- Forum: Magick++
- Topic: Compare pictures
- Replies: 9
- Views: 26519
Re: Compare pictures
I have one more question, how can I convert HBITMAP (or Bitmap) in Magick::Image? here is my code: ... BitBlt(memdc, 0, 0, width, height, scrdc, 0, 0 ,SRCCOPY); HBITMAP handle=(HBITMAP)SelectObject(memdc, membit); Gdiplus::Bitmap bitmap(handle, NULL); Magick::Image img; ... how I get this picture in ...
- 2014-03-24T04:46:19-07:00
- Forum: Magick++
- Topic: Compare pictures
- Replies: 9
- Views: 26519
Re: Compare pictures
Thanks
- 2014-03-24T01:53:50-07:00
- Forum: Magick++
- Topic: Compare pictures
- Replies: 9
- Views: 26519
Re: Compare pictures
Thanks, I have just one little question, how can I add in c++ "-fuzz", that my command looked so:
Code: Select all
compare -metric AE -fuzz 10% Image1 Image2 info:
- 2014-03-11T03:02:50-07:00
- Forum: Magick++
- Topic: Compare pictures
- Replies: 9
- Views: 26519
Compare pictures
Hello community, Maybe you can help me ?
I want to compare two pictures with visual studio. I have added "Magick++.h".
How can i realize this command with c++?
I want to compare two pictures with visual studio. I have added "Magick++.h".
How can i realize this command with c++?
Code: Select all
compare -metric AE Image1 Image2 info