vimdiff
Git can understand the output information of kdiff3, tkdiff, meld, xxdiff, emerge, vimdiff, gvimdiff, ecmerge, and opendiff merging tools. Of course, you can also specify to use your own developed tools. For details, refer to chapter 7. View configuration information
To check the existing configuration information, you can useGit config -- listCommand:
$ Git config -- listuser. Name = Scott chaconuser. Email = schacon@gmail.comcolor.status = aut
The Qpixmap class represents the image, which is implemented in the Qtgui shared library.
Structure
The Qpixmap object generated by the following constructor is an empty image:
Qpixmap (); Constructs an empty image with a size of 0
The following constructor generates the size of the Qpixmap object, but the image data is not initialized:
Qpixmap (const qsize size); Constructs an image of size, the image data is uninitialized
qpixmap (int width, int height); Equivalent to Qpixmap (qs
int qimage::bytecount () const
Returns the size of the image that is stored int qimage::bytesperline () const
Returns the number of bytes per row of an image
Equivalent to ByteCount ()/height ()
Qrgb qimage::color (int i) const
Returns the RGB value of the I position in the color table int qimage::colorcount () const
Returns the number of colors in a color table
qvectorQrgb> qimage::colortable () const
Returns the color table qimage qimage::converttoformat (format format, qt::i Mageco
screen. Write the function here. // int x = 0; // int y = 0; // int W = 300; // int H = 300; /**************************** the qpixmap can be properly saved in the following steps, you can skip qiameg *************************** // fullscreen = fullscreen. copy (X, Y, W, H); // change the screenshot area here. // fullscreen. save (filename, "jpg") requires the Save dialog box to write // If (fullscreen. save ("/savescreen.jpg", "jpg") // qdebug ("---------- save screen success ----------"); /**
Function declaration: void qpainter: drawimage (const qrectf target, const qimage image, const qrectf source, QT: imageconversionflags flags = QT: autocolor)Example:Qrectf target (10.0, 20.0, 80.0, 60.0); // create a target rectangleQrectf source (0.0, 0.0, 70.0, 40.0); // create a source rectangle to specify the part to be displayed in the source Image FileQimage image (":/images/myimage.png"); // create a qimage Class Object Image
Qpainter painte
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.