Changeset 6812 in vbox
- Timestamp:
- Feb 5, 2008 5:23:16 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxUtils.h
r6721 r6812 252 252 class VBoxFrameBuffer; 253 253 CGImageRef DarwinQImageToCGImage (const QImage *aImage); 254 CGImageRef DarwinQImageFromMimeSourceToCGImage (const char *aSource); 254 255 CGImageRef DarwinQPixmapToCGImage (const QPixmap *aPixmap); 255 256 CGImageRef DarwinQPixmapFromMimeSourceToCGImage (const char *aSource); -
trunk/src/VBox/Frontends/VirtualBox/src/darwin/VBoxUtils-darwin.cpp
r6798 r6812 69 69 70 70 /** 71 * Loads an image using Qt and converts it to a CGImage. 72 * 73 * @returns CGImageRef for the new image. (Remember to release it when finished with it.) 74 * @param aSource The source name. 75 */ 76 CGImageRef DarwinQImageFromMimeSourceToCGImage (const char *aSource) 77 { 78 QImage qim = QImage::fromMimeSource (aSource); 79 Assert (!qim.isNull()); 80 return DarwinQImageToCGImage (&qim); 81 } 82 83 /** 71 84 * Converts a QPixmap to a CGImage. 72 85 * … … 166 179 Assert (context); 167 180 /* Clear the background */ 181 CGContextSetBlendMode (context, kCGBlendModeNormal); 168 182 CGContextClearRect (context, CGRectMake (0, 0, 128, 128)); 169 183 /* rounded corners */ … … 196 210 if (aOverlayImage) 197 211 { 212 198 213 CGRect overlayRect = CGRectMake (targetWidth - CGImageGetWidth (aOverlayImage), 199 214 0,
Note:
See TracChangeset
for help on using the changeset viewer.