Hi,
On 15.01.2009, at 09:31, Parimal Das wrote:
i am getting the following output error-
2009-01-15 13:43:09.313 te[747:10b] NSImage 0x117340 Size={32, 32}
Reps=(
NSIconRefBitmapImageRep 0x117e30 Size={128, 128}
ColorSpace=NSCalibratedRGBColorSpace BPS=8 BPP=32 Pixels=128x128
Alpha=Y
Heinrich
when i am using the code corrected by U
*
NSImage *myIcon = [[NSWorkspace sharedWorkspace]
iconForFile:filePath];
NSLog(@"%@", myIcon); // check 1
NSLog(@"OK1");
NSSize imageSize = { 384.0, 384.0 }; // in points (384 pts = 512 px at 96
dpi resolution)
[myIcon setSize:imageSize];
NSBitma
On 09.01.2009, at 15:11, Parimal Das wrote:
in my application i need to resize a .jpg image through a command line
What does it mean: "resize" ?. Every NSBitmapImageRep has two sizes:
a (print-)size which says how long width and hight (expressed in
inch, cm or printerpoints or ...)
of the
hi
whenever i am running this through the command line, my app is crashing with
the error "GraphicsConetext not init"
my code crashes at the call of [lock focus]i am not creating any view till
now
So can i do it without lock/unlock focus and without view
and if not then is it possible to create a
For a bitmap image, -setSize: effectively alters the DPI of the pixels
but doesn't actually create a new bitmap of a different size. So for a
72dpi image, the NSBitmapImageRep's -width and -height methods should
give you the same values as for the image's -size method. But for a
300dpi imag
Try having a play with -[NSImage setScalesWhenResized:]
On 9 Jan 2009, at 13:50, Parimal Das wrote:
hi
in my application i need to resize a .jpg image through a command line
my code is
NSImage *icon = [[NSWorkspace sharedWorkspace]
iconForFile:filePath]; // get
icon from the file at filePa
hi
in my application i need to resize a .jpg image through a command line
my code is
NSImage *icon = [[NSWorkspace sharedWorkspace] iconForFile:filePath]; // get
icon from the file at filePath destination
NSSize imageSize;
imageSize.width = 384.0; // in points (384 pts = 512 px )
imageSize.he