Click here to Skip to main content
   

C#

 
Questionerror in query with 2 tables in c# visual studio 2010 Pinmemberzebra882-Apr-13 10:40 
AnswerRe: error in query with 2 tables in c# visual studio 2010 PinprotectorPete O'Hanlon2-Apr-13 11:12 
GeneralRe: error in query with 2 tables in c# visual studio 2010 Pinmemberzebra882-Apr-13 12:04 
GeneralRe: error in query with 2 tables in c# visual studio 2010 PinprotectorPete O'Hanlon2-Apr-13 12:14 
GeneralRe: error in query with 2 tables in c# visual studio 2010 [modified] Pinmemberzebra882-Apr-13 12:35 
GeneralRe: error in query with 2 tables in c# visual studio 2010 PinprotectorPete O'Hanlon2-Apr-13 12:39 
GeneralRe: error in query with 2 tables in c# visual studio 2010 Pinmemberzebra882-Apr-13 12:47 
GeneralRe: error in query with 2 tables in c# visual studio 2010 PinprotectorPete O'Hanlon2-Apr-13 12:50 
GeneralRe: error in query with 2 tables in c# visual studio 2010 Pinmemberzebra882-Apr-13 13:00 
GeneralRe: error in query with 2 tables in c# visual studio 2010 PinmemberRavi Bhavnani4-Apr-13 7:18 
GeneralMessage Removed Pinmemberzebra884-Apr-13 11:21 
GeneralRe: error in query with 2 tables in c# visual studio 2010 PinmemberRavi Bhavnani4-Apr-13 12:50 
SuggestionRe: error in query with 2 tables in c# visual studio 2010 PinmemberROHIT SRIVASTAVA3-Apr-13 3:58 
Question1500x1500 image at 30fps on wpf Pinmemberbarbetto802-Apr-13 5:58 
Hello,

i'm moving my actual winform based application to WPF.

My application acquire 1500x1500 8bit depth images at 30 frame per second.

In winform i was used to BitBlt my images to a panel handle and that work fine.

In wpf i tried two ways:

// on every frame:
int stride = img_w * ((PixelFormats.Gray8.BitsPerPixel + 7) / 8);
bmpSource = BitmapSource.Create(img_w, img_h, 96, 96, PixelFormats.Gray8, null, my_arrb_8bit, stride);
            
this.Image1.Source = bmpSource;

but this is too slow...then i try

// on every frame:
int max = PixelFormats.Rgb24.BitsPerPixel;
uint count = (uint)(img_w * img_h * PixelFormats.Rgb24.BitsPerPixel / 8);
IntPtr section = CreateFileMapping(new IntPtr(-1), IntPtr.Zero, FileMapProtection.PageReadWrite, 0, count, null);
IntPtr map = MapViewOfFile(section, FileMapAccess.FileMapAllAccess, 0, 0, (UIntPtr)count);
 
System.Runtime.InteropServices.Marshal.Copy(my_arrb_24bit, 0, map, (int)count);
my_ibs = System.Windows.Interop.Imaging.CreateBitmapSourceFromMemorySection(
    section,
    (int)img_w,
    (int)img_h,
    PixelFormats.Rgb24,
    (int)(img_w * PixelFormats.Rgb24.BitsPerPixel / 8), 0) as System.Windows.Interop.InteropBitmap;
this.Image1.Source = my_ibs;

this is faster than the first solution, but still i can't manage to reach 30fps....am i doing something wrong? any suggestion?
AnswerRe: 1500x1500 image at 30fps on wpf PinprotectorPete O'Hanlon2-Apr-13 6:24 
GeneralRe: 1500x1500 image at 30fps on wpf Pinmemberbarbetto803-Apr-13 0:06 
GeneralRe: 1500x1500 image at 30fps on wpf PinprotectorPete O'Hanlon3-Apr-13 0:39 
QuestionSilent installation - Invalid Re-install mode character error Pinmembersonia$cool2-Apr-13 4:57 
AnswerRe: Silent installation - Invalid Re-install mode character error PinprotectorPete O'Hanlon2-Apr-13 7:07 
GeneralRe: Silent installation - Invalid Re-install mode character error Pinmembersonia$cool3-Apr-13 5:01 
GeneralRe: Silent installation - Invalid Re-install mode character error PinprotectorPete O'Hanlon3-Apr-13 5:04 
GeneralRe: Silent installation - Invalid Re-install mode character error Pinmembersonia$cool3-Apr-13 5:24 
GeneralRe: Silent installation - Invalid Re-install mode character error PinprotectorPete O'Hanlon3-Apr-13 5:32 
GeneralRe: Silent installation - Invalid Re-install mode character error Pinmembersonia$cool3-Apr-13 5:36 
Questionget datetime values from database in dd/MM/yyyy HH:mm:ss format irrespective of system date/time format PinmemberNarVish2-Apr-13 4:24 
AnswerRe: get datetime values from database in dd/MM/yyyy HH:mm:ss format irrespective of system date/time format Pinmemberhemantrautela2-Apr-13 4:41 
GeneralRe: get datetime values from database in dd/MM/yyyy HH:mm:ss format irrespective of system date/time format PinmemberNarVish2-Apr-13 20:55 
QuestionLeft click works right does not Pinmemberelectriac2-Apr-13 1:29 
QuestionRe: Left click works right does not PinmvpEddy Vluggen2-Apr-13 1:33 
AnswerRe: Left click works right does not Pinmemberelectriac2-Apr-13 1:39 
AnswerRe: Left click works right does not Pinmemberelectriac2-Apr-13 1:50 
AnswerRe: Left click works right does not PinmvpRichard MacCutchan2-Apr-13 3:14 
GeneralRe: Left click works right does not Pinmemberelectriac2-Apr-13 3:41 
GeneralRe: Left click works right does not Pinmemberelectriac2-Apr-13 3:45 
GeneralRe: Left click works right does not PinmvpRichard MacCutchan2-Apr-13 3:50 
AnswerRe: Left click works right does not PinmemberBernhard Hiller2-Apr-13 22:26 
AnswerRe: Left click works right does not Pinmemberraeeschaudhary2-Apr-13 22:41 
QuestionRead PDF PinmemberKevin Marois1-Apr-13 13:53 
AnswerRe: Read PDF PinmvpEddy Vluggen1-Apr-13 14:15 
GeneralRe: Read PDF PinmemberKevin Marois1-Apr-13 14:16 
GeneralRe: Read PDF PinmvpEddy Vluggen1-Apr-13 14:21 
AnswerRe: Read PDF PinmvpAbhinav S1-Apr-13 21:47 
QuestionFavorites from HTML PinmemberMAW301-Apr-13 13:15 
AnswerRe: Favorites from HTML PinmvpEddy Vluggen1-Apr-13 14:20 
QuestionOpenOffice API for DotNet PinmemberASPnoob1-Apr-13 7:45 
AnswerRe: OpenOffice API for DotNet PinmemberThePhantomUpvoter1-Apr-13 8:13 
QuestionEach page of report viewer contain single report(.rdlc) [modified] PinmemberM. K. BASHER1-Apr-13 3:23 
QuestionHow to use IWin32Window Pinmembermhd almidani1-Apr-13 0:31 
AnswerRe: How to use IWin32Window PinmvpEddy Vluggen1-Apr-13 1:03 
GeneralRe: How to use IWin32Window Pinmembermhd almidani1-Apr-13 6:09 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.150414.1 | Last Updated 21 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid