Click here to Skip to main content
15,077,641 members
Home / Discussions / Objective-C and Swift
   

Objective-C and Swift

 
QuestionCan i use scanline Flood Fill algorithm to apply gradient in UIImage?How to use? Pin
Member 1319561211-May-17 21:09
MemberMember 1319561211-May-17 21:09 
AnswerRe: Can i use scanline Flood Fill algorithm to apply gradient in UIImage?How to use? Pin
Richard MacCutchan11-May-17 21:15
mveRichard MacCutchan11-May-17 21:15 
QuestionCrashing in printing Pin
Le@rner5-Apr-17 1:22
MemberLe@rner5-Apr-17 1:22 
AnswerRe: Crashing in printing Pin
Surya_Narayan10-Apr-17 23:26
professionalSurya_Narayan10-Apr-17 23:26 
GeneralRe: Crashing in printing Pin
Le@rner11-Apr-17 22:19
MemberLe@rner11-Apr-17 22:19 
QuestionHow to get the sensor data Pin
Member 1302743027-Feb-17 14:56
MemberMember 1302743027-Feb-17 14:56 
AnswerRe: How to get the sensor data Pin
Richard MacCutchan27-Feb-17 21:22
mveRichard MacCutchan27-Feb-17 21:22 
Questionimage from custom NSView , image quality is very bad. Pin
Le@rner16-Jan-17 18:50
MemberLe@rner16-Jan-17 18:50 
hi all,

i have an image with god quality even when i view it in preview and zoom its gud and not pixelate.

i have create an custom view class derived from NSView, to draw text above and below the image. and resize the image

inside the custom view class in -drawRect method, i draw the text and image.

with help of NSMutableAttributedString drawinRect and NSImage drawInRect methods.

than get final image like this.

<pre lang="objc">
OffscreenView 	*view = [[OffscreenView alloc] initWithImage:myimage];
    
    
    NSRect			rect = [view bounds];
    NSData 			*data = [view dataWithPDFInsideRect:rect];
NSImage			*image_bar = [[NSImage alloc] initWithData:data];


buts this image quality is very badges compare to original image i pass to view.

please help me to get god quality image here.

modified 17-Jan-17 1:09am.

AnswerRe: image from custom NSView , image quality is very bad. Pin
Surya_Narayan10-Apr-17 23:31
professionalSurya_Narayan10-Apr-17 23:31 
GeneralRe: image from custom NSView , image quality is very bad. Pin
Le@rner11-Apr-17 22:17
MemberLe@rner11-Apr-17 22:17 
QuestionSimultaneous Microphone Access on iPhone Pin
Member 123773388-Mar-16 0:35
MemberMember 123773388-Mar-16 0:35 
AnswerMessage Closed Pin
22-Nov-16 22:38
MemberMember 1286606322-Nov-16 22:38 
QuestionObjective C first program from the book, warning messages Pin
Alla__10-Nov-15 1:44
MemberAlla__10-Nov-15 1:44 
AnswerRe: Objective C first program from the book, warning messages Pin
BharathReddy V12-Jan-16 2:04
MemberBharathReddy V12-Jan-16 2:04 
QuestionLinker command failed with exit code 1 (use -v to see invocation) in xcode 5.1.1 Pin
Member 1198376314-Sep-15 10:17
MemberMember 1198376314-Sep-15 10:17 
QuestionImagePickerController image size Pin
liel333-Aug-15 11:30
Memberliel333-Aug-15 11:30 
AnswerRe: ImagePickerController image size Pin
biji cabe18-Dec-16 22:25
Memberbiji cabe18-Dec-16 22:25 
QuestioniOS XMPP received message in coversation screen Pin
Member 1176696715-Jun-15 2:37
MemberMember 1176696715-Jun-15 2:37 
SuggestionRe: iOS XMPP received message in coversation screen Pin
Richard MacCutchan15-Jun-15 4:19
mveRichard MacCutchan15-Jun-15 4:19 
GeneralRe: iOS XMPP received message in coversation screen Pin
Member 1176696715-Jun-15 20:42
MemberMember 1176696715-Jun-15 20:42 
AnswerRe: iOS XMPP received message in coversation screen Pin
Dennis E White17-Jun-15 5:54
professionalDennis E White17-Jun-15 5:54 
Questionmake a system monitor using obj c. Pin
Member 116779679-May-15 13:00
MemberMember 116779679-May-15 13:00 
AnswerRe: make a system monitor using obj c. Pin
Richard MacCutchan9-May-15 21:10
mveRichard MacCutchan9-May-15 21:10 
GeneralRe: make a system monitor using obj c. Pin
Dennis E White15-May-15 5:25
professionalDennis E White15-May-15 5:25 
GeneralRe: make a system monitor using obj c. Pin
Richard MacCutchan15-May-15 5:41
mveRichard MacCutchan15-May-15 5:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.