Reza Salehi
|
Re: RE: How to use devg-flat in gf_dev_attach?
|
Reza Salehi
05/24/2011 4:14 PM
post86097
|
Re: RE: How to use devg-flat in gf_dev_attach?
Well, I think my problem is that I am not familiar enough with the graphic sub-systems of QNX to know what I want to do
:). Basically, I have some graphic artists that are providing me base .png files. I need to draw an ellipse based on
some dynamic data and save the result as another .png file. So, whatever is the fastest to accomplish this would work
for me.
I appreciate it if you have any suggestion or code snippet to help me get started.
Thanks,
Reza
|
|
|
Reza Salehi
|
Re: RE: How to use devg-flat in gf_dev_attach?
|
Reza Salehi
05/24/2011 7:06 PM
post86101
|
Re: RE: How to use devg-flat in gf_dev_attach?
Hi Joel,
I tried to use the direct pointer approach, but my system hangs. Below is a code snipet where it hangs:
img_t img_day;
if ((rc = img_lib_attach(&ilib)) != IMG_ERR_OK) {
fprintf(stderr, "img_lib_attach() failed: %d\n", rc);
return rc;
}
img_day.flags = 0;
img_day.flags |= IMG_DIRECT;
// /tmp/stop.png is the location of the file on the target VM system
img_template_file_Day = "/tmp/stop.png";
// The code hangs after making the call below. If I don't set the IMG_DIRECT flag, it works.
if ((rc = img_load_file(ilib, img_template_file_Day, NULL, &img_day)) != IMG_ERR_OK) {
fprintf(stderr, "img_load_file(%s) failed on Day Template: %d\n", img_template_file_Day, rc);
// return rc;
}
|
|
|