Click here to Skip to main content
11,495,945 members (65,553 online)
   

C#

 
GeneralRe: error in query with 2 tables in c# visual studio 2010 Pin
zebra882-Apr-13 12:47
memberzebra882-Apr-13 12:47 
GeneralRe: error in query with 2 tables in c# visual studio 2010 Pin
Pete O'Hanlon2-Apr-13 12:50
protectorPete O'Hanlon2-Apr-13 12:50 
GeneralRe: error in query with 2 tables in c# visual studio 2010 Pin
zebra882-Apr-13 13:00
memberzebra882-Apr-13 13:00 
GeneralRe: error in query with 2 tables in c# visual studio 2010 Pin
Ravi Bhavnani4-Apr-13 7:18
memberRavi Bhavnani4-Apr-13 7:18 
GeneralMessage Removed Pin
zebra884-Apr-13 11:21
memberzebra884-Apr-13 11:21 
GeneralRe: error in query with 2 tables in c# visual studio 2010 Pin
Ravi Bhavnani4-Apr-13 12:50
memberRavi Bhavnani4-Apr-13 12:50 
SuggestionRe: error in query with 2 tables in c# visual studio 2010 Pin
ROHIT SRIVASTAVA3-Apr-13 3:58
memberROHIT SRIVASTAVA3-Apr-13 3:58 
Question1500x1500 image at 30fps on wpf Pin
barbetto802-Apr-13 5:58
memberbarbetto802-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 Pin
Pete O'Hanlon2-Apr-13 6:24
protectorPete O'Hanlon2-Apr-13 6:24 
GeneralRe: 1500x1500 image at 30fps on wpf Pin
barbetto803-Apr-13 0:06
memberbarbetto803-Apr-13 0:06 
GeneralRe: 1500x1500 image at 30fps on wpf Pin
Pete O'Hanlon3-Apr-13 0:39
protectorPete O'Hanlon3-Apr-13 0:39 
QuestionSilent installation - Invalid Re-install mode character error Pin
sonia$cool2-Apr-13 4:57
membersonia$cool2-Apr-13 4:57 
AnswerRe: Silent installation - Invalid Re-install mode character error Pin
Pete O'Hanlon2-Apr-13 7:07
protectorPete O'Hanlon2-Apr-13 7:07 
GeneralRe: Silent installation - Invalid Re-install mode character error Pin
sonia$cool3-Apr-13 5:01
membersonia$cool3-Apr-13 5:01 
GeneralRe: Silent installation - Invalid Re-install mode character error Pin
Pete O'Hanlon3-Apr-13 5:04
protectorPete O'Hanlon3-Apr-13 5:04 
GeneralRe: Silent installation - Invalid Re-install mode character error Pin
sonia$cool3-Apr-13 5:24
membersonia$cool3-Apr-13 5:24 
GeneralRe: Silent installation - Invalid Re-install mode character error Pin
Pete O'Hanlon3-Apr-13 5:32
protectorPete O'Hanlon3-Apr-13 5:32 
GeneralRe: Silent installation - Invalid Re-install mode character error Pin
sonia$cool3-Apr-13 5:36
membersonia$cool3-Apr-13 5:36 
Questionget datetime values from database in dd/MM/yyyy HH:mm:ss format irrespective of system date/time format Pin
NarVish2-Apr-13 4:24
memberNarVish2-Apr-13 4:24 
AnswerRe: get datetime values from database in dd/MM/yyyy HH:mm:ss format irrespective of system date/time format Pin
hemantrautela2-Apr-13 4:41
memberhemantrautela2-Apr-13 4:41 
GeneralRe: get datetime values from database in dd/MM/yyyy HH:mm:ss format irrespective of system date/time format Pin
NarVish2-Apr-13 20:55
memberNarVish2-Apr-13 20:55 
QuestionLeft click works right does not Pin
electriac2-Apr-13 1:29
memberelectriac2-Apr-13 1:29 
QuestionRe: Left click works right does not Pin
Eddy Vluggen2-Apr-13 1:33
mvpEddy Vluggen2-Apr-13 1:33 
AnswerRe: Left click works right does not Pin
electriac2-Apr-13 1:39
memberelectriac2-Apr-13 1:39 
AnswerRe: Left click works right does not Pin
electriac2-Apr-13 1:50
memberelectriac2-Apr-13 1:50 

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
Web04 | 2.8.150520.1 | Last Updated 30 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid