Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!bcm!etaylor From: etaylor@wilkins.iaims.bcm.tmc.edu (Eric Taylor) Newsgroups: comp.windows.x Subject: Re: Message-ID: <3098@gazette.bcm.tmc.edu> Date: 6 Dec 90 18:35:44 GMT References: <9012061432.AA08997@expo.lcs.mit.edu> Sender: usenet@bcm.tmc.edu Reply-To: etaylor@wilkins.iaims.bcm.tmc.edu (Eric Taylor) Organization: Baylor College of Medicine, Houston, Tx Lines: 14 Nntp-Posting-Host: wilkins.iaims.bcm.tmc.edu When you create the image, use NULL for the data argument. After it is created fill in data field with: image->data = malloc(image->height * image->bytes_per_line) ; I believe that this is the easiest and safest method. It was unfortunate that X did not provide a function that allocated the data for you. -- Eric Taylor Baylor College of Medicine etaylor@wilkins.bcm.tmc.edu (713) 798-3776